Removing blank pages in report

穿精又带淫゛_ 提交于 2019-12-12 05:42:27

问题


I'm currently new using iReport to create reports.

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.

I placed my subreports in report groups:

Group
Subreport
Subreport
Group

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. I can't post my code due to the fact that I'm not allowed to export and import code in the office.


回答1:


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...



来源:https://stackoverflow.com/questions/12943976/removing-blank-pages-in-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!