paginationjasper-reportssubreport

Jasper-Reports - Pagefitting Subreport is split when included in Main Report


I am currently designing a report, that is supposed to use multiple subreports in the Detail Section of a main Report. I am at the very start and up to now have only left the Detail 1 and Page Footer Band for my main report, using Page X of Y in the Footer, and my first subreport in Detail 1.

I am using the A4 Landscape Page format for both reports. My Subreport is currently containing a Title Band and a Detail Band.

Both reports use "select GetDate() as test" as their main Dataset, so that it's a single line, keeping the detail section from printing multiple times.

Each Element of my Subreport is using their own Dataset (2 lists, 1 Bar Graph)

The problem I have is that even though my Subreport fits my Page, as inis printed on single page when using preview, when i include it on my main report, it suddenly splits the Title and Details Band (I am not using "Title on a new Page") and puts the content on 2 pages.

Is there a way to force each Subreport to fill the exact space on the main report, as it does on it's own?

Edit 1: Additional Problem The Preview of the Main Report doesnt Change when I modify the Subreport, it always shows an old Version of the Sub-Report


Solution

  • Re-Compiling the Subreport actually proved successfull as it updated what the main report showed, so it now fit the page.