_Document.Close MethodÂ
Closes the specified document or documents.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim SaveChanges As Object
Dim OriginalFormat As Object
Dim RouteDocument As Object
Dim _Document1 As _Document
_Document1.Close(SaveChanges, OriginalFormat, RouteDocument)
Syntax
Sub Close( _
<InAttribute()> Optional ByRef SaveChanges As Object, _
<InAttribute()> Optional ByRef OriginalFormat As Object, _
<InAttribute()> Optional ByRef RouteDocument As Object _
)
void Close(
[In, Optional] ref object SaveChanges,
[In, Optional] ref object OriginalFormat,
[In, Optional] ref object RouteDocument
);
public: Void Close(
&Object^ SaveChanges,
&Object^ OriginalFormat,
&Object^ RouteDocument
);
public void Close(
/*in*/System.Object SaveChanges,
/*in*/System.Object OriginalFormat,
/*in*/System.Object RouteDocument
);
function Close(
SaveChanges : Object,
OriginalFormat : Object,
RouteDocument : Object
);
Parameters
- SaveChanges
Optional Object. Specifies the save action for the document. Can be one of the following WdSaveOptions constants: wdDoNotSaveChanges, wdPromptToSaveChanges, or wdSaveChanges.
- OriginalFormat
Optional Object. Specifies the save format for the document. Can be one of the following WdOriginalFormat constants: wdOriginalDocumentFormat, wdPromptUser, or wdWordDocument.
- RouteDocument
Optional Object. True to route the document to the next recipient. If the document doesn't have a routing slip attached, this argument is ignored.
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