有没有办法在JasperReports中设置起始页码?

发布于 2024-12-24 18:16:46 字数 192 浏览 2 评论 0原文

我有一个报告系统,偶尔会有多个连续的JasperReports(例如常规报告和最后的索引报告)。如果常规报告有 21 页长,那么我需要后续报告从第 22 页开始。

有没有一种简单的方法来告诉 JasperReport 从哪个页码开始?我可以用迂回的方式做到这一点,但我觉得我忽略了一些简单的事情。谷歌和必应搜索没有为我提供任何答案。感谢您提供的任何帮助。

I have a reporting system where occasionally there will be multiple JasperReports in a row (e.g. a regular report, and an index report at the end). If the regular report is 21 pages long, then I need the subsequent report to start on page 22.

Is there a simple way to tell a JasperReport what page number to start on? I can do this in a roundabout way, but I feel like I am overlooking something simple. Google and Bing searches have not yielded any answers for me. Thanks for any help you can offer.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

我也只是我 2024-12-31 18:16:46

不,没有任何功能可以说“从第 N 页开始”。

但仅仅添加一个参数$P{FirstPageNumber}似乎并不算太​​迂回。然后,在通常使用表达式 $V{PAGE_NUMBER} 的字段中,您可以使用 $V{PAGE_NUMBER} + $P{FirstPageNumber}

No, there's no feature to say, "Start on page N."

But it doesn't seem that it would be too roundabout to just add a parameter $P{FirstPageNumber}. Then in the field where you would normally use the expression $V{PAGE_NUMBER}, you would instead use $V{PAGE_NUMBER} + $P{FirstPageNumber}.

半衬遮猫 2024-12-31 18:16:46

使用“页面”+ $V{PAGE_NUMBER}.lowestOneBit( 1 )

use "Page "+ $V{PAGE_NUMBER}.lowestOneBit( 1 )

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