让目录和页码在 Pentaho 中工作
我正在开发一个报告应用程序,用户可以从 100 个报告的列表中选择(和订购)报告并请求主报告。该主报告应按准确的顺序包含所有选定的报告,并在目录中列出主报告中包含的(子)报告和正确的页码。
我正在以编程方式创建 MasterReport 并将所选报告作为子报告添加到 MasterReport 的报告页脚。每个子报表的报表页脚都将其 pageBreakAfterPrint 属性设置为 true,以便子报表出现在不同的页面上。分页符在pdf和excel中看起来很好,但在word中分页符没有效果。
但是,我无法弄清楚如何以编程方式将目录元素添加到 MasterReport,它将列出所有添加的子报表。我还想知道如何以编程方式使页码在页脚上正常工作。
I am developing a reporting application where a user can select(and order) reports from a list of 100 reports and ask for a master report. This master report should contain all the selected reports in the exact order, with a table of contents listing the (sub)reports included in the master report and correct page number.
I am programmatically creating a MasterReport and adding the selected reports as sub reports to the MasterReport's report footer. Each SubReport's report footer has its pageBreakAfterPrint property set to true so that the subreports come on different pages. The page break seems fine in pdf and excel, but in word the page break has no effect.
However, I am not able to figure out how to add a table-of-content element programmatically to the MasterReport which will list all the subreports added. I would also like to know how to get the page number working properly on page footer programmatically.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现有一个单独的 jar 包含目录代码。但是,我仍然不确定如何使用。这不再重要,因为我们正在寻求迁移到 BIRT。
I discovered that there is a separate jar that has the TOC code. However, I am still not sure how to use. This doesn't matter anymore as we are looking to move to BIRT.