The articles in this section of the Knowledge Base involve working with Page Bands for display in your reports. To access the Report Designer, select Toolbox Setup > Design Reports > Design (Report Type) Report. Select New Report to design a report from scratch or New Report from Existing. Select Designer to open Report Designer.
From this screen, add a Page Band component to your report, or edit an existing data band component.
Page bands are a vital component for report creation. Generally, they are used to output things like company address, contact information, copyright notices, page numbering, etc.. Report Designer has three types of page bands: Empty Data, Page Footer, and Page Header.
A Page Header band is output at the top of every page of the report. There is no limit to the amount of Page Header bands that can be placed on a page.
In a new report, add a Page Header band, a Data band, and a Header band. Use the Page Header band to display the current page number and number of pages in the report. Use the Data band to display data in the report. Use the Header band to display column headers. Add a text component to the Page Header band and add the following expression in the Text Property Editor:
To the Header Band, add four text components to act as column headers. For this example, I’ve added the following headers:
To the Data Band, add four text components and apply a data field that corresponds to the headers you chose above.
You should have something that looks like this:
At this point, run the report. Notice the page number is printed at the top of each page and that data fields have populated down the pages.
A Page Footer band is output at the bottom of every page of the report. The Page Footer is useful for company information, dates, and page numbers. There is no limit to the amount of Page Footer bands that can be placed on a page.
In a new report, add a Page Footer band, a Data band, and a Header band. Use the Page Footer band to display the current page number and number of pages in the report. Use the Data band to display data in the report. Use the Header band to display column headers. Add a text component to the Page Footer band and add the following expression in the Text Property Editor:
To the Header Band, add four text components to act as column headers. For this example, I’ve added the following headers:
To the Data Band, add four text components and apply a data field that corresponds to the headers you chose above.
You should have something that looks like this:
At this point, run the report. Notice the page number is printed at the bottom of each page and that data fields have populated down the pages.
The PrintOnEvenOddPages property is used to print headers and footers on even/odd pages, for Page Header bands and Page Footer bands.
Figure 06 shows a report with the PrintOnEvenOddPages property of the Page Header band set to EvenPage.
Figure 07 shows a report with the PrintOnEvenOddPages property of the Page Header band set to OddPage.
There are three values available for the PrintOnEvenOddPages Property: