chakrabs Posted May 2, 2022 Share Posted May 2, 2022 I have created a report with two level of nesting for sub-reports. While I preview in studio, or run in the jasper web console the report works but when trying to export as an XLSX, the inner nested reports gets excluded from the excel file. Can someone please shed some light on the reason for such behavior? The nested sub-report element which is excluded while exporting is in the title section of its immediate parent.The reason for nesting is to have a master report with multiple groups. Each group is having a sub-report to be rendered in each individual excel sheet, with a break element in between them. The sub-report again has two sections one table and another graph. While the table is embedded in the sub-report, the graph is created as a separate report and is embedded again as a sub-report within the first sub-report. Following structure explained - Master Report- (1st child Sub-report) )Report Sheet 1 (2nd child Sub-report) Graphs Table (1st child Sub-report) )Report Sheet 2 (2nd child Sub-report) Graphs TableEach report and sub-reports have the following parameters set -<property name="net.sf.jasperreports.export.xls.one.page.per.sheet" value="true"/><property name="net.sf.jasperreports.page.break.no.pagination" value="apply"/> Link to comment Share on other sites More sharing options...
erika.chinchio Posted May 2, 2022 Share Posted May 2, 2022 I have the same problem (https://community.jaspersoft.com/questions/1194941/jasper-api-nested-subreports) I think jasper server embeds the subreports, amd jasperstudio dowsen't included nested subreport (from th 2 level). I have encountered this problem there since version 8, but i don't know how to do a workaraund, or where is my errors.. In the log I see java.lang.IllegalArgumentException: contextPath needs to be an absolute paththanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now