Jaspersoft Community 'Read-Only' as of July 8, 2022
Transition to New TIBCO Community Just Weeks Away
You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.
2 Answers:
Please refer to this wiki article for a sample report:
http://community.jaspersoft.com/wiki/how-keep-last-report-record-and-rep...
First get the total row count in your report query, then add the print when condition to your report detail section $V{REPORT_COUNT} < $F{total row count}. Add a second detail section with a larger band height to contain the same contents as the original report detail section plus theyour report totals placed below the original detal content. The print when expression for the new detail section is $V{REPORT_COUNT} == $F{total row count}.
This will force JR engine to treat the last record and your report total as one detail line with taller height to allow them stay together when pagination occurs.
In my report I've got table component, how can I do the same?
I need to tie summary to table element last row and print page totals together with this row only if summary overlap to the next page