c.cruz_1 Posted May 6, 2015 Posted May 6, 2015 Hi, for some reasons we need to print two reports at the time, but we only have ireports as tool, not Java layer access. After reading in several forums, I've tried to include one of them as subreport in the Title Band and the other one as subreport in the Summary band. This is working, but creates different problems:-Subreports bands are not applied, so footer comes just after last Detail Band filled line.-I'm not able to make a Page Break appear after the first report.I can feel that Ireport doesn't allow to do this without tricking, I suposse that wasn't created for supporting this behavior, so I'm asking if there is another way to achieve this, or waiting to someone to correct me and show me how to get the two separate report in one print working only with ireport generated .jasper files without losing funcionality.Thanks in advance!
sadakar Posted May 6, 2015 Posted May 6, 2015 Try taking two sub reports1) Take Title band for your report title2) Take Summary band to keep 2 sub reports3) In each of the sub reports write your report content.4) If you use any parameters pass them from parent to child. (find them in sub report properties).
c.cruz_1 Posted May 6, 2015 Author Posted May 6, 2015 Thanks for response,I could make it work as you suggest, and for solving specific problems I could find a solution.-Subreports bands are not applied, so footer comes just after last Detail Band filled line. In subreport properties, mark "Run to Bottom". If you find that an extra blank page appears, just make sure that the band that holds the subreport has the same height as the subreport itself.-I'm not able to make a Page Break appear after the first report. Just include a PageBreak after first report, this was easy to find, sorry for asking
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