jaspersoft studio创建jasperreport模板 summary显示page header(页眉)

来源:互联网 发布:淘宝网店运营公司 编辑:程序博客网 时间:2024/06/06 00:16

使用jaspersoft studio创建模板,page header在每页都显示,但是当这页只有summary部分时,就不显示page header。

解决方法:强制让page header在summary显示,叫做“Summary with Page header and footer”。

1.如果你使用的是ireport创建模板,设置isSummaryWithPageHeaderAndFooter="true"。

2.如果使用的是jaspersoft studio 可以直接在模板Source代码中,修改 :

<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="建议书" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"isSummaryWithPageHeaderAndFooter="true"uuid="e39a4b40-bb0b-4301-9dcb-f28f23b7f99c">

即,添加isSummaryWithPageHeaderAndFooter="true"。

3.点击整个页面,在properties选中SummaryWithPageHeaderAndFooter选项。



1 0