Add List Headers

You can add headers or footers to a report to show summaries or text.

To create a place for report totals, you can add

  • overall header or overall footer.

    The information contained in the header or footer appears only once for the entire report.

  • list header or list footer.

    The information contained in the header or footer appears once on each page, at the top or bottom of the list.

  • group header or group footer.

    Summary information for a given level appears in the header or footer of any grouped column.

Procedure

Add a listPageHeader element and its child elements to the list element. Use the afterOverallHeader attribute to specify whether you want the list page header to appear before or after the overall header.
Sample XML

<listPageHeader afterOverallHeader="true"> 
	 <listRows>
	  <listRow>
	   <rowCells>
		<rowCell colSpan="4">
		 <contents>
		  <textItem>
		   <dataSource>
			<staticValue>List Page Header</staticValue>
		   </dataSource>
		  </textItem>
		 </contents>
		 <style>
		  <defaultStyles>
		   <defaultStyle refStyle="lh"/>
		  </defaultStyles>
		 </style>
		</rowCell>
	   </rowCells>
	  </listRow>
	 </listRows>
 </listPageHeader> 

Results

The following image contains a list page header, a group footer and an overall header.
Figure 1. List headers in a report from Reporting
The page header is underneath the header row, followed by the list page header, information on binoculars, and a footer with the text Binoculars.