The TextReport external type defines the events that a basic text report handler can react to.
myReport.onFirstPageHeaderListener = printHeader1;
If you assign a function name to one of these event variables, you must create a matching function in the handler. The matching functions must have a single argument, a TextReportEvent type variable.
For a complete list of event variables, see Text report variables. For a sample text report program and handler, see Writing code to print a text report.