I have a jasper report that consists of 6 subreports. Each of these subreports has its own title section. Now I need each report to start on the new page. I tried adding page breaks but it did not work for me.
While researching the problem I cam across a trick to set isTitleNewPage
to true
at
http://www.dzone.com/snippets/jasperreports-subreport-new. So I added the attribute isTitleNewPage="true"
to all the subreports, but now the subreport's Title remains on the previous page and Details and Summary of that subreport are being displayed on a new page.
How can i solve this problem??
PrintWhenExpression
for the Page Header band tonew Boolean($V{PAGE_NUMBER}.intValue() == 1)
in the subreports. That should cause it to only print on the first page of the subreport. I know this expression works when not a subreport, but I am not positive it works with subreports. Basically the subreport sees the page number as. – Jacob Schoen