IR Framework

Startup Script

Include this script in the Document.OnStartup event to use the IR Framework in a bqy file.
if (Application.Type != bqAppTypeDesktopClient) {
	//	Turn off the toolbars for more screen acreage for reporting
	for (i = 1; i <= Toolbars.Count; i++) Toolbars.Item(i).Visible = false;
}
//	Load the scripts
eval( (new JOOLEObject("Scripting.FileSystemObject")).OpenTextFile(-2, 1, "\\\\servername\\foldername\\Script\\IRFramework.js").ReadAll() );
//	If you want to turn on toolbars when you leave the document, the following lines are for the Document.OnShutdown event.
//	Turn on the toolbars for future system usability
//for (i = 1; i <= Toolbars.Count; i++) Toolbars.Item(i).Visible = true;