Detail band with page break

2.2k views Asked by At

I have a report that contains a page break in the detail section . in the first part of the detail section (before the page break) i have put a subreport containing an image.

When running the report i have two pages (as expected ) but the image is displayed in both pages.Is there a tip to display my image in the first page only?

To test i moved it after the page break and it worked correctly (displayed the image in the second page only). Why the first method is not working on the first page only?

1

There are 1 answers

2
Cataleya On

I resolved this issue by putting the subreport in the Column Footer band, and in the "Print when expression" of the subreport I used this expression to display it in the first pages only:

new Boolean($V{PAGE_NUMBER}.intValue() % 2 != 0)