让目录和页码在 Pentaho 中工作

发布于 2024-10-12 17:47:12 字数 347 浏览 3 评论 0原文

我正在开发一个报告应用程序,用户可以从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜夜流光相皎洁 2024-10-19 17:47:12

我发现有一个单独的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文