Programming example
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
Programming example
The exercise in this section demonstrates the techniques available when using headers and footers in a report.
To see an example of using headers and footers in a report:
- Open i-10-10.p and run it.
- Click Report. The Report Output dialog
box appears:

Notice the header info at the top of each page. As you scroll through, you can see footers as well.
- Click OK, then Exit, and then press SPACEBAR to return to the Procedure Editor.
The i-10-10.p code fragment shows the report generating code for this procedure.
i-10-10.p
|
The following notes summarize the techniques shown in these topics:
- The body frame, which has no
HEADERsection, appears in its normal position, at the top of the file with other definitions. - The
PAGE-SIZEoption 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
HEADERframe comprises the running report head. -
PAGE-TOPplaces this frame at the top of the report page. - This
HEADERframe comprises the running page footer. -
PAGE-BOTTOMplaces the header frame at the bottom of the page. - The
VIEWstatements force the AVM to evaluate the twoHEADERframes 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-OFfunction 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 thePAGEstatement to start a new page for the next break group report.