ActiveDocument (Object)

Member of:

Application object

Description:

Represents documents that users are currently viewing.

Tip:

The ActiveDocument.Save() method saves a document to your local computer and not to the server.

Syntax:

Access the active document using this syntax:

Application.ActiveDocument

To access any document, specify this syntax:

Application.Documents["Document Name.bqy"]

Example:

This example indicates how to save and close documents under new names:

ActiveDocument.SaveAs("d:\\Hyperion Docs\\Updated File.bqy")
ActiveDocument.Close()

Methods:

Activate(), AddExportSection(SSectionName As String), Close([optional] SaveChanges as Boolean), Export([optional] Filename as String, [optional] FileFormat as BqExportFileFormat, [optional] Prompt as Boolean), InterruptQueryProcess(), OnPostProcess(), OnPreProcess(), OnShutdown(), OnStartup(), ProcessAll() RemoveExportSections(), Save([optional] bCompressed as Boolean), SaveAs[(optional] Filename as String, [optional] bCompressed as Boolean, [optional] Prompt as Boolean], SaveToRepository, SaveToRepositoryAS (String Filename, [optional] String Filedesc, [optional] Boolean bOverride)

Properties:

Read only: Property Accessibility as Boolean, Property Path as String, Property ProcessEventOrigin as BqProcessEventOriginType, QueryInProcess as String

Read-write: Property Active as Boolean, Property Name as String, Property ShowCatalog as Boolean, Property ShowSectionTitleBar as Boolean

Collections:

Sections as Section, Events as Event, UserValues as UserValues