如何根据某些条件在JasperReports中手动插入分页符 [英] How to manually insert page break in JasperReports on basis of certain conditions
本文介绍了如何根据某些条件在JasperReports中手动插入分页符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想检查子报表中是否还有其他条件,例如分页符.
I want to check if else condition in subreports for page break like.
我正在使用jasper模板在pdf报告中打印customername
,我需要打破
如果客户名称不同,则应在新页面上打印新客户名称.该怎么做?
I am printing customername
in pdf report using jasper template, i need to break the
page if the customer name is different and the new customer name should be printed in new page. How to do that?
推荐答案
几种不同的可能性:
- 添加分页符
- 更改其PrintWhenExpression
报告组
- 右键单击报告名称(在报告检查器中)
- 选择添加报告组
- 提供组名(例如,UniqueCustomer)
- 将分组依据"值设置为
customername
字段 - 单击完成
- Right-click on the report name (in the Report Inspector)
- Select Add Report Group
- Provide a Group Name (e.g., UniqueCustomer)
- Set the Group by value to the
customername
field - Click Finish
这篇关于如何根据某些条件在JasperReports中手动插入分页符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文