如何在iReport中执行Java计数器i ++ [英] how to do java counter i++ in iReport

查看:54
本文介绍了如何在iReport中执行Java计数器i ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用ireport 3.4.2做计数器变量

i want to do counter variable, im using ireport 3.4.2

在Java中,我们可以像i ++那样简单地执行.我该怎么办?

in java we can simply do like i++ to increament. how can i do t in iReport?

推荐答案

上面的答案可能也是正确的,但是我没有尝试过.我尝试创建变量并设置计算字段"count",然后根据反因素正确设置变量表达式.可以.

The above answer might be right also, but i didnt tried it. I try to created variable and set the calculation field "count" and then set the variable expression correctly based counter factor. it works.

这篇关于如何在iReport中执行Java计数器i ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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