Script
  • 02 Feb 2024
  • PDF

Script

  • PDF

Article summary

Global Scripts: Gets or sets the global VBScript module. Functions and subroutines defined here (using the standard VBScript syntax) can be used in other scripts in the current report like standard VBScript functions.

OnClose: A VBScript that is fired when the report finishes rendering. Can be used to perform clean-up tasks.

OnError: A VBScript that is fired when an error occurs.

OnNoData: A VBScript that is fired when a report starts rendering but the source record set is empty. This property could be used to set the Cancel property to True to prevent the report from being generated or to show a dialog box to alert the user as to the reason why not report is being displayed.

OnOpen: A VBScript that is fired when the report starts rendering. Can be used to modify the ConnectionString or Record Source properties, or to initialize VBScript variables.

OnPage: A VBScript that is fired when a new page starts. This property can be used to set conditions for the Visible property. The control maintains a Page variable that is incremented automatically when a new page starts.


Was this article helpful?