473,809 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MOSS 2007 API to implement check in & check out

HI ,

I am using MOSS 2007 API's to implement the version controls like check in
and check out in Visual Studio 2005.
I have a sharepoint 2007 server and i am accessing the MOSS API (on
sharepoint server) from dotnet web application on my local machine using a
custom webservice. I am able to check out the document on the sharepoint
server by calling the API "item.File.Chec kOut();" method via custom
webservice. But once i check out the document i need to open the document
and check it in back to the sharepoint server from my application. When i try
to do this i can open the document using the following code

SPDocumentLibra ry docLib =
(SPDocumentLibr ary)web.Lists[System.Configur ation.Configura tionSettings.Ap pSettings["CarizmaDocumen tLibraryName"].ToString()];SPListItem
item = docLib.GetItemB yId(int.Parse(d ocumentID));
SPFile document = web.GetFile(ite m["URL Path"].ToString());
byte[] documentContent = document.OpenBi nary();
Response.ClearC ontent();
Response.Conten tType =
Carizma.Common. CarizmaConfigur ation.GetAppSet ting("CONTENT_T YPE_" + itemType);
Response.AddHea der("Content-Disposition", "attachment;fil ename=" +
documentName);
Response.Binary Write(documentC ontent );
Response.End();

But i am not able to check in the changes made on the document back to the
sharepoint server from my local application. How will i be able to do this?
Sep 1 '08 #1
0 1330

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
979
by: Sulaiman | last post by:
Hello All; How can we use MOSS 2007 WebParts in ASP.Net 2.0 application? I wanna use OWA webparts in intranet ASP.Net 2.0 Application, is it possible? Thanks Regards Sulaiman Lalani
1
1346
by: AGH | last post by:
I have an Intranet based on ASP.NET 2.0 using Webparts to give a similar experience to Sharepoint. This development was made as Sharepoint 2003 did not suit our needs and Sharepoint 2007 was not ready. Now that Sharepoint 2007 is ready (and being demo'd) I am getting questions regarding features available in the new Sharepoint that we do not currently have. I am reluctant to throw away the current Intranet and replace it with...
0
1113
by: MrHeo | last post by:
Hi all, I'm working on desktop application that I want to update Content Type in MOSS 2007. Anyone else who can give me the way to solve this issue. Thanks!
1
1814
by: Chris at Pierce | last post by:
I have a Windows Forms Vb.net program written in vstudio2005 that I would like to have access a MOSS (Microsoft Office Sharepoint Server 2007) List, and have the ability to add records to that list. Additionally it would be nice to loop through existing MOSS list rows (records). If anyone from Microsoft is reading this... it sure would be nice if VStudio could view a MOSS List as a Datasource that could be listed in a dataset and...
10
1704
by: Jeff | last post by:
This is something I can't test (don't have 2007) and found no definitive answer, but a few conflicting ones. Will a 2003 database work correctly in Access 2007? Don't want to do any design work, just execute and use the database in 2007. And will Office and Access 2003 work correctly in Vista? Jeff
0
1288
by: Chris Auer | last post by:
I am try to get information from AD from within MOSS. My app is strongly typed, marked as SAFECONTROL in the web.config and the dlls are in the GAC. But I get this error. Here is my code (very simple) public void TestSite() { DirectoryEntry AD = new System.DirectoryServices.DirectoryEntry("LDAP://
4
3945
by: Samuel | last post by:
Hi I would like to implement a toolbar similar to the one in Office 2007 Can anyone tell me if this control is available in VS 2008 Thank you, Samuel
2
1509
by: maxy1255 | last post by:
Hi everybody. i am new to this forum.i need a help in MOSS,i am not getting .Net events in the codebehind.can anyone help me out
0
1637
by: Mphasis123 | last post by:
Hello, I am trying to run a MOSS site within Pocket PC browser emulators. Content Query Webpart not getting rendered on emulators. ERROR Description: Unable to display this Web Part Seek some guidance Archana
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.