_Document.CheckIn Method

Returns a document from a local computer to a server, 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 CheckIn ( _
    SaveChanges As Boolean, _
    ByRef Comments As Object, _
    MakePublic As Boolean _
)
'Usage
Dim instance As _Document
Dim SaveChanges As Boolean
Dim Comments As Object
Dim MakePublic As Boolean

instance.CheckIn(SaveChanges, Comments, _
    MakePublic)
void CheckIn(
    bool SaveChanges,
    ref Object Comments,
    bool MakePublic
)

Parameters

  • SaveChanges
    Type: System.Boolean
    Optional Boolean. True saves the document to the server location. The default is True.
  • Comments
    Type: System.Object%
    Optional Object. Comments for the revision of the document being checked in (only applies if SaveChanges equals True).
  • MakePublic
    Type: System.Boolean
    Optional Boolean. True allows the user to perform a publish on the document after being checked in. This 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 equals True).

Remarks

To take advantage of the collaboration features built into Microsoft Word, documents must be stored on a Microsoft SharePoint Portal Server.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace