Server Administration > Reports > Advanced Report Recipe Writing > Creating Common Page Elements for Reports
  
Creating Common Page Elements for Reports
Common page elements can be created for printing HTML reports. For example, displaying the report title and company copyright on every page of a report.
This is achieved through the use of the <thead> and <tfoot> HTML table tags and CSS. For example:
In the report recipe’s CSS file:
thead {display: table-header-group}
tfoot {display: table-footer-group}
<thead> and <tfoot> tags must be placed before the <tbody> tag
All of the default HTML report recipes installed with the Windchill RV&S server contain this.
CSS
thead { display: table-header-group; }
tfoot { display: table-footer-group; }
In the report recipe file:
<table>
<thead><tr><td colspan="&#fields">&reporttitle</td></tr></thead>
<tfoot><tr><td colspan="&#fields">&reportfooter</td></tr></tfoot>
<tbody>
<!-- Display item field values -->
<%begindetail%>
<tr>
<%iteratefields%>
<td>&fieldname</td>
<%/iteratefields%>
</tr>
<%enddetail%>
</tbody>
</table>