_Document.CheckInWithVersion Method
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.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub CheckInWithVersion ( _
SaveChanges As Boolean, _
ByRef Comments As Object, _
MakePublic As Boolean, _
ByRef VersionType As Object _
)
'Usage
Dim instance As _Document
Dim SaveChanges As Boolean
Dim Comments As Object
Dim MakePublic As Boolean
Dim VersionType As Object
instance.CheckInWithVersion(SaveChanges, _
Comments, MakePublic, VersionType)
void CheckInWithVersion(
bool SaveChanges,
ref Object Comments,
bool MakePublic,
ref Object VersionType
)
Parameters
- SaveChanges
Type: System.Boolean
True to save the document to the server location. The default is True.
- Comments
Type: System.Object%
Comments for the revision of the document being checked in (only applies if SaveChanges is set to true).
- MakePublic
Type: System.Boolean
True to allow the user to publish the document after it is checked in.
- VersionType
Type: System.Object%
Specifies versioning information for the document.
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 Microsoft Word, documents must be stored on a Microsoft SharePoint Portal Server.