Document.Close Method
Closes the document.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Sub Close ( _
ByRef SaveChanges As Object, _
ByRef OriginalFormat As Object, _
ByRef RouteDocument As Object _
)
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.
Remarks
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.