Disable Page break between last table row and next frame

Hello. Help me please, how can I disable page break after Table element? I have Table element with binded Dataset. If my Dataset is long enough, I have page break, and I want to disable this page break immediately after last table row. I want to carry this last row to the next page and so have page break BEFORE last row. After Table element I have frame with some info, and this info should not be divided from table. Help me please.

reportDev11235's picture
Joined: Apr 25 2016 - 8:14am
Last seen: 7 years 5 months ago

Can you try with some print when expression condition on break eleement as per your report logic. ? Try getting the second last record

using REPORT_COUNT variable, you can try in this way.

sadakar - 7 years 5 months ago

1 Answer:

I have found a solution, used this approach and got exactly what was needed:

http://community.jaspersoft.com/wiki/how-keep-last-report-record-and-report-summary-information-together-even-when-pagination-occurs

However, I had to do some reengineering of my report. Table element was replaced by the subreport.

reportDev11235's picture
Joined: Apr 25 2016 - 8:14am
Last seen: 7 years 5 months ago
Feedback
randomness