473,387 Members | 3,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.CheckOut();" 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

SPDocumentLibrary docLib =
(SPDocumentLibrary)web.Lists[System.Configuration.ConfigurationSettings.AppSett ings["CarizmaDocumentLibraryName"].ToString()];SPListItem
item = docLib.GetItemById(int.Parse(documentID));
SPFile document = web.GetFile(item["URL Path"].ToString());
byte[] documentContent = document.OpenBinary();
Response.ClearContent();
Response.ContentType =
Carizma.Common.CarizmaConfiguration.GetAppSetting( "CONTENT_TYPE_" + itemType);
Response.AddHeader("Content-Disposition", "attachment;filename=" +
documentName);
Response.BinaryWrite(documentContent );
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 1301

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

Similar topics

0
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
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...
0
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
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...
10
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...
0
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...
4
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
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...

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.