共用方式為


Document.Close(Object, Object, Object) Method

Definition

Closes the document.

public void Close (ref object SaveChanges, ref object OriginalFormat, ref object RouteDocument);
abstract member Close : obj * obj * obj -> unit
Public Sub Close (Optional ByRef SaveChanges As Object, Optional ByRef OriginalFormat As Object, Optional ByRef RouteDocument As Object)

Parameters

SaveChanges
Object

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

OriginalFormat
Object

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

RouteDocument
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.

Applies to