开发者

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

开发者 https://www.devze.com 2022-12-25 03:00 出处:网络
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.

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?


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号