The following screenshot shows the Report Designer's report triggers, all of which are available in a report:
Descriptions for the report triggers are as follows:
- OnInitReport(): This executes once when the report is opened.
- OnPreReport(): This executes once after the request page completes. All the DataItem processing follows this trigger.
- OnPostReport(): This trigger executes once at the end of all of the other report processing, if the report completes normally. If the report terminates with an error, this trigger does not execute. All of the DataItem processing precedes this trigger.