IReport subpage subdivision

There are two Detail groups in the subregion, the first is โ€œTitleโ€ and the second is the other. These stripes are divided from each other into two pages.

I tried many properties with no result, as "ignore pagination" and "allow schedule"

My question is: how can I make iireport not split my subordinate into two pages?

I have some screenshots:

Main report:

enter image description here

Subport:

enter image description here

Another report:

enter image description here

The resulting PDF file is as follows:

enter image description here

+4
source share
1 answer

Instead of using the two stripes in the main subtitle, place the title and the second subreport in the same range. Then set splitType for this single range to "Prevent" . Thus, the header and data will be stored together, and separation will occur before the header if the data does not fit on the page.

Edit - prevent header repeating:

Putting the title in the detail bar will repeat with each data set. To prevent this, change the value of printWhenExpression to $V{REPORT_COUNT} == 1 . This will force it to print only once, for the first record, and not for each subsequent cycle through the data source.

+5
source

Source: https://habr.com/ru/post/1435014/


All Articles