Jump to content

Recommended Posts

Posted

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!

 

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

Try taking two sub reports

1) Take Title band for your report title

2) Take Summary band to keep 2 sub reports

3) 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).

 

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...