如何根据某些条件在JasperReports中手动插入分页符 [英] How to manually insert page break in JasperReports on basis of certain conditions

查看:330
本文介绍了如何根据某些条件在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?

推荐答案

几种不同的可能性:

  1. 添加分页符
  2. 更改其PrintWhenExpression

报告组

  1. 右键单击报告名称(在报告检查器中)
  2. 选择添加报告组
  3. 提供组名(例如,UniqueCustomer)
  4. 将分组依据"值设置为customername字段
  5. 单击完成
  1. Right-click on the report name (in the Report Inspector)
  2. Select Add Report Group
  3. Provide a Group Name (e.g., UniqueCustomer)
  4. Set the Group by value to the customername field
  5. Click Finish

这篇关于如何根据某些条件在JasperReports中手动插入分页符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆