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

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

Parameters

SaveChanges
Type: System.Object%
Optional Object. Specifies the save action for the document. Can be one of the following WdSaveOptions constants: wdDoNotSaveChanges, wdPromptToSaveChanges, or wdSaveChanges.
OriginalFormat
Type: System.Object%
Optional Object. Specifies the save format for the document. Can be one of the following WdOriginalFormat constants: wdOriginalDocumentFormat, wdPromptUser, or wdWordDocument.
RouteDocument
Type: System.Object%
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.

Community Additions

ADD
Show: