Progress
Language Tutorial
for Character
Programming Example
The exercise below demonstrates the techniques discussed in this section:
The following code fragment shows the report generating code for this procedure:
The following notes summarize the techniques shown in this chapter:
- The body frame, which has no HEADER section, appears in its normal position, at the top of the file with other definitions.
- The PAGE-SIZE option sets the report page size.
- The use of the control break changes the report output from one report into a series of smaller reports-one for each sales rep.
- This HEADER frame comprises the running report head.
- PAGE-TOP places this frame at the top of the report page.
- This HEADER frame comprises the running page footer.
- PAGE-BOTTOM places the header frame at the bottom of the page.
- The VIEW statements force Progress to evaluate the two HEADER frames on each iteration of the block.
- Here, the report creates an address string and uses the @ option to place the result at the Holder variable.
- The LAST-OF function is for checking for the end of a break group, allowing you to perform special tasks. In this case, the procedure suppresses the page footer because this break group report is complete. It also uses the PAGE statement to start a new page for the next break group report.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |