服务器管理 > 报告 > 高级报告脚本写入 > 为报告创建通用页面元素
为报告创建通用页面元素
您可以创建通用页面元素来打印 HTML 报告。例如,您可以在报告的每一页上显示报告标题和公司版权。
通过使用 <thead><tfoot> HTML 表格标记和 CSS 可以实现这点。例如:
在报告脚本的 CSS 文件中:
thead {display: table-header-group}
tfoot {display: table-footer-group}
<thead> and <tfoot> tags must be placed before the <tbody> tag
Windchill RV&S 服务器安装的所有默认 HTML 报告脚本都包含此内容。
CSS
thead { display: table-header-group; }
tfoot { display: table-footer-group; }
在报告脚本文件中:
<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>
这对您有帮助吗?