4.8.1  Adding Headers and Footers to a Report

Walkthrough

The following example shows you how to add headers and footers that display title, page, and date information:

1. Click the header area or the 'Header' button to select the Header as the current editing target. The insertion point moves to the header area, indicating that new elements will be inserted into the header (rather than the report body).

2. Click the 'Text' button in the Toolbox panel. This adds a text element into the header.

3. Type the static text “Revenue Report” into the text element, and click away from the element.

4. Click the text element to select it. In the Style Studio toolbar, click the 'Center' alignment button and the 'Bold' button to change the formatting.

 

5. Click the 'Footer' button in the toolbar to move the insertion point to the footer.

6. Click the 'Text' button in the Toolbox panel. This adds a text element into the footer.

7. Type the text “Page {P} of {N}” in the text element. The symbols “{P}” and “{N}” are special page number tags that can only be used in headers and footers. When the report is generated, these tags are replaced with the current page number and the total number of pages, respectively. (See Adding Page Numbers and Dates in Headers/Footers for additional information.)

8. Select the footer again, and click the 'Text' button to add a second text element to the footer.

9. Enter the text “{D} {T}” in the text field. The symbols “{D}” and “{T}” are special date/time tags that can only be used in headers and footers. When the report is generated, the tags are replaced with the current date and time, respectively.

10. Click the new text element to select it. Click the 'Right' alignment button in the Style Studio toolbar to position the element as shown below.

 

The completed example is saved as headerfooter1.srt in the /examples/docExamples/design directory.

<< 4.8 Headers and Footers © 1996-2013 InetSoft Technology Corporation (v11.4) 4.8.2 Adding Page Numbers and Dates in Headers/Footers >>