This documentation is archived and is not being maintained.

Document.Close Method

Closes the document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

void Close(
	ref Object SaveChanges,
	ref Object OriginalFormat,
	ref Object RouteDocument
)

Parameters

SaveChanges
Type: System.Object%
Specifies the save action for the document. Can be one of the following WdSaveOptions values: wdDoNotSaveChanges, wdPromptToSaveChanges, or wdSaveChanges.
OriginalFormat
Type: System.Object%
Specifies the save format for the document. Can be one of the following WdOriginalFormat values: wdOriginalDocumentFormat, wdPromptUser, or wdWordDocument.
RouteDocument
Type: System.Object%
true to route the document to the next recipient. If the document does not have a routing slip attached, this argument is ignored.

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Show: