Document.Close Method (Object, Object, Object)

 

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 T:Microsoft.Office.Interop.Word.WdSaveOptions values: F:Microsoft.Office.Interop.Word.WdSaveOptions.wdDoNotSaveChanges, F:Microsoft.Office.Interop.Word.WdSaveOptions.wdPromptToSaveChanges, or F:Microsoft.Office.Interop.Word.WdSaveOptions.wdSaveChanges.

OriginalFormat
Type: System.Object

Specifies the save format for the document. Can be one of the following T:Microsoft.Office.Interop.Word.WdOriginalFormat values: F:Microsoft.Office.Interop.Word.WdOriginalFormat.wdOriginalDocumentFormat, F:Microsoft.Office.Interop.Word.WdOriginalFormat.wdPromptUser, or F:Microsoft.Office.Interop.Word.WdOriginalFormat.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.

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

Return to top
Show: