Jump to content
Changes to the Jaspersoft community edition download ×

Subreport Printing Across Multiple Pages


dtacker

Recommended Posts

I have a report that I am building.

The report has (3) detail bands.  Each detail band has its own subreport.

See image attached.  When I run the report the subreports are printing on multiple pages multiple times.  I can not figure out why this is happening.

In image attached, "Barcodes", "reference jobs", and "colors" are all subreports.  Notice how the PDF looks.

Any help would be appreciated.

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

But how do you handle multiple subreports in a summary band?  form what I've seen, as the first subreports returns more records, it will start to overlap the subreport below it.  And correct me if I'm wrong but you can't add more than one summary band?

Link to comment
Share on other sites

Based on the attached pdf, each of the sub report is repeated 12 times. This is because the Main Report is binded to a dataset with 12 records. There are two options to solve the issue.

1) Update the query on the MAIN report so that the dataset contains only one record.

2) Move the Sub reports to Tile or Summary Bands as suggested by @dtacker. Resize the Summary Band to fit in all the subreports. This is cleaner apporach.

 

Link to comment
Share on other sites

  • 3 weeks later...

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