JanardhanReddy
JanardhanReddy

Reputation: 65

how to check-out document in document library programmatically in sharepoint

how to set a document in check-in/out mode programmatically by using webservices or objetmodel in sharepoint

Upvotes: 3

Views: 6947

Answers (2)

Jason Evans
Jason Evans

Reputation: 29186

You need SPListItem.File.CheckOut / SPListItem.File.CheckIn from the object model. I don't know how to do this using the web service though.

Upvotes: 3

Steve Danner
Steve Danner

Reputation: 22158

You need the CheckInFile and CheckOutFile web methods of the Lists webservice. The calls are pretty straight forward. Hope this helps.

Upvotes: 1

Related Questions