4.8.4 Associating Headers/Footers with Specific Elements
Sometimes you may need to specify headers and footers independent of the page numbering. For example, in a report that consists of multiple sections, you may need to display a different header and footer for each section.
To do this, you can associate the header/footer specification with an element in the report (any element). Then, whenever the specified element is displayed on the page, the associated header/footer will be displayed as well. You can choose whether this element-associated header/footer should remain in effect only on pages where the specified element is displayed, or persist until a new element-associates header/footer is encountered in the report.
This element-based header/footer mechanism is more flexible than specifying the header/footer for specific pages using page numbers (see Displaying a Header/Footer for Specific Page Types). Because the page layout is based on the flow model, contents can shift and print on different pages depending on previous elements. By associating the header/footer with an element, you can ensure that the flow does not change the header/footer association.
To associate a header/footer with an element, follow these steps:

1. Click the “arrow” icon next to the 'Header' or 'Footer' button. This opens the 'Header' or 'Footer' menu.

2. Select the 'Edit' option. This opens the 'Edit Target' dialog box. This lists all elements in the report.

3. Select an element to associate with the header (footer), and click 'Add'. Repeat to add any additional elements that will have distinct headers/footers.
To display distinct headers/footers for different sections of the report, add the heading elements (e.g., section titles) to the list. You can then create a distinct header for each section. If more than one element on a page has an associated header/footer, the header/footer corresponding to the last element is used.
If necessary, you can insert invisible elements into the report for the purpose of changing the header/footer on the page. For example, the last page of the report requires a different header, you can add a “space” element at the end of the report, and associate a new header with this element.
4. (Optional) Select 'Continue after element' to make the header/footer continue until the next element-associated header/footer. Otherwise, the header/footer will display only on pages that contain the element.
5. Click 'OK' to close the dialog box.

6. Again click the “arrow” icon next to the 'Header' or 'Footer' button to open the menu. Observe that the elements which you added are now listed in the menu.

7. Select the element from the list to which you want to associate the distinct header/footer.
8. Add components to the header or footer, as desired.

To create a header/footer for a different report element, again click the 'Header' ('Footer') button, and select the desired target from the menu.
| << 4.8.3 Displaying a Header/Footer for Specific Page Types | © 1996-2013 InetSoft Technology Corporation (v11.5) | 5 Report Elements >> |