Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 555
Sandeep Jindal Avatar asked Mar 29 '10 03:03

Sandeep Jindal


People also ask

What is subreport in Jasper report?

A subreport is a report included inside another report. This allows the creation of very complex layouts with different portions of a single document filled using different data sources and reports.


2 Answers

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

like image 120
Raveendra Mutyala Avatar answered Oct 12 '22 21:10

Raveendra Mutyala


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

like image 32
Alexander Ljungberg Avatar answered Oct 12 '22 21:10

Alexander Ljungberg