finishReport()
The textReport.finishReport() function
passes control to the report engine to finalize the report. That process
includes
running the functions (if any) that are associated with the following
report
variables (see Text report variables):
- onAfterGroupListener
- onLastRowListener
- onPageTrailerListener
The engine finishes by closing the output file.
Syntax
textReport.finishReport()
- textReport
- The name of a variable that is based on the TextReport external type.
Example
The following example prints any output that is associated with the final row, prints a last footer, and closes the output file.
myReport TextReport = new TextReport();
...
myReport.finishReport();