Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

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

Dim SaveChanges As Object
Dim OriginalFormat As Object
Dim RouteDocument As Object
Dim _Document1 As _Document
_Document1.Close(SaveChanges, OriginalFormat, RouteDocument)

void Close(
	[In, Optional] ref object SaveChanges, 
	[In, Optional] ref object OriginalFormat, 
	[In, Optional] ref 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



Optional Object. Specifies the save action for the document. Can be one of the following WdSaveOptions constants: wdDoNotSaveChanges, wdPromptToSaveChanges, or wdSaveChanges.


Optional Object. Specifies the save format for the document. Can be one of the following WdOriginalFormat constants: wdOriginalDocumentFormat, wdPromptUser, or wdWordDocument.


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.

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

Development Platforms

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

Target Platforms