_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)

Usage

Dim SaveChanges As Boolean
Dim Comments As Object
Dim MakePublic As Boolean
Dim _Document1 As _Document
_Document1.CheckIn(SaveChanges, Comments, MakePublic)

Syntax

Sub CheckIn( _
    <InAttribute()> Optional ByVal SaveChanges As Boolean, _
    <InAttribute()> Optional ByRef Comments As Object, _
    <InAttribute()> Optional ByVal MakePublic As Boolean _
)
void CheckIn(
    [In, Optional] bool SaveChanges, 
    [In, Optional] ref object Comments, 
    [In, Optional] bool MakePublic
);
public: Void CheckIn(
    Boolean SaveChanges, 
    &Object^ Comments, 
    Boolean MakePublic
);
public void CheckIn(
    /*in*/boolean SaveChanges, 
    /*in*/System.Object Comments, 
    /*in*/boolean MakePublic
);
function CheckIn(
     SaveChanges : Boolean, 
     Comments : Object, 
     MakePublic : Boolean
);

Parameters

  • SaveChanges
    Optional Boolean. True saves the document to the server location. The default is True.
  • Comments
    Optional Object. Comments for the revision of the document being checked in (only applies if SaveChanges equals True).
  • MakePublic
    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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

_Document Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

_Document Members