Handler events for a text report

The TextReport external type defines the events that a basic text report handler can react to.
Each event is a variable that you reference through the text report variable. You can code a function for any of these events. The text report engine calls the corresponding function whenever the event occurs. Use a simple EGL assignment statement in the handler to associate a function with an event, as in the following example:
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.


Feedback