Sandeep Jindal
Sandeep Jindal

Reputation: 15368

Jasper Reports: How can i have multiple growing subreports in a report?

My Requirement is to show two sub reports in a Report. What I am doing is, I have created two sub-reports and put that into a report.

But the issue is that, both the sub reports are growing (i.e. their height is not static as the number of records are variable). I just want the second sub=report to appear after the end of first sub-report. How can I achieve the same?

Upvotes: 6

Views: 10374

Answers (3)

abdurrahman
abdurrahman

Reputation: 84

Try to add detail band as many as your subreport to your main report (You can right click the detail band and choose "Add another detail band"). And place each subreport on every detail band that you make. Detail band have ability to shrink and grow depend on your data row and it will fit nicely to your report.

Upvotes: 1

Raveendra Mutyala
Raveendra Mutyala

Reputation: 151

You can use the option "Position Type" by selecting "Float" as the value. So based on the first reports size the second one will be adjusted.

Regards, Raveendra Mutyala

Upvotes: 15

Alexander Ljungberg
Alexander Ljungberg

Reputation: 6362

You could put the second subreport inside the first subreport, in the page footer. The footer moves down when the detail band grows, so the subreport should always end up underneath the content of the first subreport.

Cheers,

Alexander

Upvotes: 1

Related Questions