Removing blank pages in report

2019-09-15 05:53发布

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条回答
Root(大扎)
2楼-- · 2019-09-15 06:18

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

查看更多
登录 后发表回答