OnShutdown (Method)

Applies To:

Document object, EventScript object, Slier object

Description:

An Interactive Reporting document file level function available for running applications through scripting. The OnShutdown method executes a script stored under the OnShutdown event trigger. This method takes no arguments. Any OnShutDown events are executed before you are prompted to save or discard changes made to a document in the Save dialog box.

Syntax:

Expression. OnShutdown()

Expression Required:

An expression that returns an Interactive Reporting document object

Example:

This example shows how to use the OnShutdown() method to exit an Interactive Reporting document file and save the document

Documents["Untitled"].OnShutdown()
Documents["SaleQuery"].Save()
Documents["SalesQuery"].Save()