This section describes five sample programs that you can run against the SALESORD database, described in Appendix C. They demonstrate how to use the Report Writer to create some typical business reports:
A standard detail report listing database fields in columns
Lists customer names and their addresses for mailing labels. This report makes use of the fold field facility, within field processing, to print fields down the page
Lists customer order details by region. This report demonstrates useful techniques, such as:
How to print a block of statistics after each region category, including the total number of records, the total value of orders and the average value of orders
This report prints the same information as the TOTALS report, but shows you how to make use of a runtime field to create a report for the region specified by the user at runtime
A customer invoice on pre-printed stationery. In this report, the standard Report Writer page headings are switched off, and the predefined variable TODAY is used to print today's date