Close (Method)

Applies To:

Document object,

Description:

Closes the Interactive Reporting document file. This method is equivalent to selecting File  > Close.

Note:

The Document.Close() object model syntax is not supported in an Interactive Reporting document file deployed in the EPM Workspace or in Interactive Reporting Web Client.

Syntax:

Expression.Close([SaveChanges As Boolean])

Expression Required:

An expression that returns a Document or WebClientDocument object

Example:

This example shows how to close all the open documents in the application:

var OpenDocs = Documents.Count
for (j = 1 ; j <= OpenDocs ; j++)
    Documents[j].Close()