JasperReports:根据组计算页数 [英] JasperReports: counting pages depending on group

查看:133
本文介绍了JasperReports:根据组计算页数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是这样的。

页面上显示的报告页码不应该依赖于当前但在组页面上。

The report page numbers that are displayed on the page should not be dependent on the current but on the group page.

让我解释一下:

我有一个包含4个页面的报告,每个组有两个页面,并且我需要做的是:

I have a report with 2 groups that has 4 pages, each group on two pages, and what I need to do is the following:

group 1 page 1: should be: 1/2 -> current: 1/4
group 1 page 2: should be: 2/2 -> current: 2/4
group 1 page 1: should be: 1/2 -> current: 3/4
group 1 page 2: should be: 2/2 -> current: 4/4

有什么方法可以做到这一点......

Is there any way this can be done ...

PS。不允许使用黑魔法,我查看了 JasperReports 中定义的变量,但它们都不符合配置文件:)

PS. No black magic allowed, I had a look at the variables that are defined in JasperReports but none of them fit the profile :)

推荐答案

user51931答案是对的!它对我也有帮助。

user51931 answer is correct ! It also helpful to me.

您还可以从设计视图设置此组属性。

You can also set this group property from design view.

这篇关于JasperReports:根据组计算页数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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