How to prevent group footer starting on new page?

Hi,

In my report group footer is moved to next page which is causing empty group header in few pages.

I tried isPreventOrphanFooter= true on group but it gives me error.

Is  there any alternative to prevent moving only group footer to next page?

Kindly hel me on this I am new to jasper report.

 

Attached my jrxml file:

I am writing query in jrxml itself and currently i added dummy values but jrxml looks exactly same. Group footer is moved  to next page when details of the group ends in the end of the page.

 


 

Attachments: 
Dev-1's picture
65
Joined: Dec 20 2021 - 11:00pm
Last seen: 1 year 1 week ago

I added the code .Please look into it

Dev-1 - 1 year 1 month ago

Can you please provide any solution for this? I thought of using keepTogether=true but it leaves huge space when only one row present in the group. I tried most of the things but nothing has really worked. I am struck now. It would really help me if anyone provide solution.

Dev-1 - 1 year 1 month ago

3 Answers:

Please provide the code of your report.

bigalex's picture
3074
Joined: Apr 12 2019 - 9:15am
Last seen: 1 year 1 week ago

If the report is not set as Ignore Pagination, it is all about setting the correct height in all bands. That means you should know how many rows in the Detail band will occupy available space on the first page. Adding a border to the field may help see how much space the area is occupied.

bigalex's picture
3074
Joined: Apr 12 2019 - 9:15am
Last seen: 1 year 1 week ago

Hi,

It's not possible to check how many rows detail band occupy in each page because details are dynamically increases sometimes based on field value. Actually it's not static. Can you please tell me Is there any solution in this case?

 

Thanks,

Dev

Dev-1's picture
65
Joined: Dec 20 2021 - 11:00pm
Last seen: 1 year 1 week ago
Feedback