删除报告中的空白页 [英] Removing blank pages in report
问题描述
我目前是新来的,使用 iReport 来创建报告.
I'm currently new using iReport to create reports.
我的主要报告只是一个长页面,其中包含许多子报告.每次我单独运行 subreports 时都没有数据,它说没有页面,但是在我的主报告中,它显示空白页面.我希望它仅显示包含数据的页面,而那些没有数据的页面不应包含空白页面.
My main report is just one long page with many subreports. Every time I run my subreports alone with no data it says no pages, but with my main report, it shows blank pages. I want it to show only the pages with data, and those pages without data should not have blank pages.
我将子报表放置在报告组中:
Group
Subreport
Subreport
Group
,大约重复5-6次.我已经将包括主报告在内的所有报告设置为 无数据时=无页面 ,并且还检查了所有属性的通用属性中为空白时的删除行 subreport 元素.我的主报告没有查询,因此我放置了一个简单的 SELECT 1
.
and it is repeated at around 5-6 times. I have already set all of my reports including my main report the When no data = No Pages, and I have also checked the remove line when blank in the common properties for all subreport elements. My main report does not have a query so I placed a simple SELECT 1
.
P.S. 由于我不允许在办公室中导出和导入代码,因此我无法发布代码.
推荐答案
您需要去编辑子报表的查询并设置记录节点(Xpath生成).....它将消除子报表的问题,即文档中没有页面...
you need to go to edit query of your subreport and set the record node (Xpath generation).....it will remove the problem of subreport that is NO PAGES IN DOCUMENT...
这篇关于删除报告中的空白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!