Close Method [Document, Documents]

The Close method closes the document and all associated windows or views.

Syntax

object.Close( SaveChanges, FileName )

 

Parameter Type Description
SaveChanges GrfSaveTypes optional, default=grfSaveChangesYes
FileName String optional, default=""

 

Example

This example demonstrates how to prompt to save a document prior to closing it.

Doc.Close (grfSaveChangesAsk)

 

Used by: Document object, Documents collection