This method closes the document.
Syntax
public void closeDocument(boolean saveChanges)
Parameters
boolean saveChanges Specifies true to save changes before
closing document.
Usage
- If the parameter saveChanges is false, the document is closed without saving changes.
- If the parameter saveChanges is true and the document is in visible mode:
- If the document is new, or new from a template, a Documents-Save window
display to save the file.
- If the document is opened from a file, then the document is saved before
closing.
- If the parameter saveChanges is true and the document is in invisible mode:
- If the document is a new , or new from a template, this method throws an exception.
- If the document is opened from a file, then the document is saved before
closing.