有没有办法在JasperReports中设置起始页码? [英] Is there a way to set the starting page number in JasperReports?

查看:544
本文介绍了有没有办法在JasperReports中设置起始页码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

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

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.

推荐答案

不,没有任何特色可以说,从第N页开始。

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

但似乎只是添加一个参数 $ P {FirstPageNumber} 过于迂回。然后在通常使用表达式 $ V {PAGE_NUMBER} 的字段中,您将使用 $ V {PAGE_NUMBER} + $ P {FirstPageNumber }

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}.

这篇关于有没有办法在JasperReports中设置起始页码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆