Jasper Reports:如何在一个报表中包含多个不断增长的子报表?
我的要求是在报告中显示两个子报告。我正在做的是,我创建了两个子报告并将其放入报告中。
但问题是,两个子报告都在增长(即它们的高度不是静态的,因为记录数量是可变的)。我只想在第一个子报告结束后出现第二个子=报告。我怎样才能达到同样的效果?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以通过选择“浮动”作为值来使用“头寸类型”选项。因此,根据第一个报告的大小,第二个报告的大小将进行调整。
问候,
拉文德拉·穆蒂亚拉
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.