iReport - 如何将摘要饼图移动到报告的第一页而不是最后一页?
是否可以将摘要饼图作为我的多页报告的第一页(位于详细信息区域之前)?打印报告时,我需要将摘要区域显示为第一页。
感谢您的建议!
思言
Is it possible to have a Summary Pie chart as the first page of my multi-page report (right before the Detail band)? I need to display my Summary band as the first page when report is printed.
You advice is appreciated!
Siyan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您是否尝试过仅为饼图创建数据集?我认为如果您这样做,您应该能够将饼图放置在您想要的任何区域中。
Have you tried creating a dataset just for the Pie chart? I think if you do that you should be able to place the Pie chart in whatever band you would like.
扩展 Rogiller 所说的内容:您可以使用仅具有一个组标题带的假组(true 组)(当 $V{PAGE_NUMBER}==1 时打印)。然后使用数据集填充图表并使用报告作为执行时间,但是如果您有数据库查询,这可能会很昂贵,因为它将执行两次。
您还可以使用子报表。
或者投票支持此功能请求:
0005115:在报告详细信息之前呈现摘要带的选项
Expanding on what Rogiller said: You can use a fake group (group on true) with only one group header band (print when $V{PAGE_NUMBER}==1). Then use a dataset to fill the chart and use Report as the ExecutionTime, however this can be costly if you have a database query because it will execute twice.
You could also use a subreport.
Alternatively vote for this feature request:
0005115: Option to render summary band before report details
我通过将评估时间设置为“报告”解决了这个问题:
之后,您可以移动标题或其他波段的图表
I resolved this problem by setting Evaluation Time at "Report":
After that, you can move the charts at the title or other bands
我现在不知道这是否可能。但是如果您转换为 pdf,您可以简单地使用 iTetxt 重新排列页面解决方法。或者您可以将饼图放在报告的页眉部分
I don't now if this is possible.But if you convert to pdf you can simply rearrange the pages with iTetxt as a workaround.Or you can put the pie chart in the page header section of the report
您可以通过添加报告组标题来实现此目的,在那里您可以附加子数据集的摘要饼图。
You can achieve this by adding Report Group header , there you can have a summary pie chart attached with sub dataset.