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