Page Breaks not working properly after upgrade to JasperReports Server v7.1.1

We have several existing Jasper reports which contain multiple sub-reports that no longer display properly after upgrading our JasperReports Server from v6.4.2 to v7.1.1 and JasperReports Library v6.5.0. 
These reports were working fine in JasperReports Server v6.4.2.

All sub-reports or in a Group Footer of the main report, and each sub-report represents a separate tab when exported to Excel format.
 - The Main report [Cover Page] represents [Tab 1] in the Excel output. 
 - Sub-Report 1 represents [Tab 2] in the Excel output.
 - Sub-Report 2 represents [Tab 3] in the Excel output.
 - and so on...

After the v7.1.1 upgrade, when the report is run:
 - Sub-Report 1 data ([Tab 2] in the Excel output) now appears on the main report [Cover Page] (after the main contents). 
 - Sub-Report 2 data ([Tab 3] in the Excel output) now appears where [Tab 2] data should be, and so on...

So, after exporting the results to Excel format, the [Tab] names are still intact and have the correct labels, but the associated data generated by the corresponding sub-reports have shifted one (1) [Tab] to the left.

Has anyone seen this behavior in v7.1.1, or know if this is a known issue and/or know of a fix for it?

Our current workaround was to modify the Main report by adding a Page Break in the Group Header of the main report, but this doesn’t seem like a reasonable solution if we have many reports across multiple environments that have this issue.

Thanks in advance for any feedback on this.

leonard.neely's picture
Joined: Apr 9 2019 - 10:41am
Last seen: 3 years 12 months ago

hozawa, thanks for responding!

Yes, jasperreports-6.4.32.jar is what was packaged with jasperserver 7.1.1, but we replaced the libraries with jasperreports-6.5.0.jar to resolve an issue with sub-totals.

leonard.neely - 4 years 3 weeks ago

2 Answers:

I just unpacked jasperserver.war file and in the /WEB-INF/lib/ directory, the version of jasperreports.jar is jasperreports-6.4.32.jar and not 6.5.0

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 11 months ago

use jasperreports-6.4.2.jar to fix that issue.

Windows OS path to jar is \Jaspersoft\jasperreports-server-cp-7.1.0\apache-tomcat\webapps\jaspermysql\WEB-INF\lib

prabuddha.kulatunga's picture
Joined: Aug 8 2018 - 10:03pm
Last seen: 1 year 1 month ago