Jump to content

Recommended Posts

Posted

Created a report in JasperStudio. Complicated report with subreports, and subreports on the subreports.

When I run it in JasperServer, pages 6-35 are identical - except for the page number in the footer. The identical pages show in JasperStudio, and in PDF and XL exports.

Any suggestions as to what is going on here?

 

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Clarifying joel's reply, if you put subreports in a detail band, it would get repeated for each row in the dataset. Try moving the subreports to a summary band so it would only be processed once.

Posted

So, if I move my subreports to the summary, then they will only print at the end of the report. Correct?

Maybe I am using subreports incorrectly?

I have a detail row, and then I want to display a row (or rows) of related data. There can be 0, 1 or more related rows, so, I set them up in a subreport. Shouldn't the subreport be called after the detail grouping finishes? That is, if I group in Inventory_ID, when all the detail rows are printed, it should then print the subreport related to that Inventory_ID.

Then it should go on to display that next Inventory_ID.

Is my logic correct? If I set the report to group on Inventory_ID, should it print the detail row, then any sub reports in the Group footer? Or would those be in the Detail band?

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