ma_il Posted August 11, 2014 Share Posted August 11, 2014 Hi all,I'm trying to show a subreport at the end of my report which shouldstart a new pagegrow to use as much space as it requiresuse the same datasource as the parent reportBut so far I have been unable to get it to show up.I have tried putting the subreport into the Summary section as well as the Last Page Footer. Also I have tried using the connection or the datasource from the parent report. I have tried toggling "Run To Bottom" and played around with the "Stretch Type" of the subreport element - all to no avail.What _did_ turn out to be a good idea was to compile the subreport into a JasperReport object and set it as a report parameter to avoid classpath problems. So I'm sure that the subreport is valid and can be evaluated on its own.If I can't get it to work I'm prepared to render the reports separately, export them to PDF and concatenate them via iText but first I'd like to try getting it to work "the right way". Link to comment Share on other sites More sharing options...
Solution ma_il Posted August 11, 2014 Author Solution Share Posted August 11, 2014 Managed to get it working after all.What I finally did was:provide a copy of the datasource via a parameter in the parent report instead of trying to use the same datasourcecheck "Title on a new page" in the subreportKeeping the growing subreport in the Summary band of the parent wasn't problematic after all. 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