Tutorial Chapter 9: Reports

This program generates a simple report of the data in the customer database table. The two parts of a report, the report driver logic and the report definition are illustrated. A technique to allow a user to interrupt a long-running report is shown.

This program generates a simple report of the data in the customer database table. The two parts of a report, the report driver logic and the REPORT program block (report definition) are illustrated. Then the program is modified to display a window containing a ProgressBar, and allowing the user to interrupt the report before it is finished.

Figure: Report flow

This figure shows the components and flow for report generation. The program logic that specifies what data to report (the report driver) is separate from the program logic that formats the output of the report (the report definition).