Document.CheckIn(Boolean, Object, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Puts a document on a server from a local computer, and sets the local document to read-only so that it cannot be edited locally.
public void CheckIn (bool SaveChanges = true, ref object Comments, bool MakePublic = false);
abstract member CheckIn : bool * obj * bool -> unit
Public Sub CheckIn (Optional SaveChanges As Boolean = true, Optional ByRef Comments As Object, Optional MakePublic As Boolean = false)
Parameters
- SaveChanges
- Boolean
true
to save the document to the server location. The default is true
.
- Comments
- Object
Comments for the revision of the document being checked in (only applies if SaveChanges
is set to true
).
- MakePublic
- Boolean
true
to allow the user to publish the document after it is checked in.
Remarks
Setting the MakePublic
parameter to true
submits the document for the approval process, which can eventually result in a version of the document being published to users with read-only rights to the document (only applies if SaveChanges
is set to true
).
To take advantage of the collaboration features built into Word, documents must be stored on a Microsoft SharePoint Portal Server.
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.