JavaScript scripts can be added to the Interactive Reporting document file itself, executing OnStartup or OnShutdown. Add scripts to these events to perform any startup and shutdown tasks. The following exercise hides the application Status bar, the Format toolbar, and the dInteractive Reporting document file Section/Element pane. There are other toolbars accessible in each of these areas of the object model. Use this exercise as a starting point to accessing the various toolbars.
To hide toolbars:
Choose File, then Document Scripts to open the Script Editor on the Interactive Reporting document file.
Use the Object browser to navigate the object model, and set the property for the Status bar, the Formatting toolbar, and the Section/Element panes to false.
In Application, then Properties, then double-click ShowStatusBar, and then type =false. End the statement with a semicolon and a return.
Application.ShowStatusBar=false;
The menu bar can be accessed at this level of the object model, with ShowMenuBar property.
In Application, then Toolbars, then Formatting, then Properties, then double-click Visible, and then type =false. End the statement with a semicolon and a return.
Toolbars["Formatting"].Visible=false;
Several other toolbars are accessible under Application, then Toolbars.
In Application, then ActiveDocument, then Properties, then double-click ShowCatalog, and then type =false. End the statement with a semicolon and a return.
ActiveDocument.ShowCatalog=false;
The Section title bar can be accessed at this level of the object model with the ShowSectionTitleBar property.