如何在 iReport 中找出总行数并显示/隐藏列值
我正在使用 iReport 4.5
我想做的是显示/隐藏第一个和最后一个列值的列值,如下所示
...姓名
- {empty} Ben
- Dog Bill
- Cat Sophie
- Cat {empty}
有谁知道我该怎么做?
我已阅读有关 printWhenExpression 的内容,但不确定如何提前获取表中的行数?
提前致谢
I am using iReport 4.5
What I am trying to do is to show/hide the column value of the first and last column value something like the following...
Pet | Name
- {empty} Ben
- Dog Bill
- Cat Sophie
- Cat {empty}
Does anyone know how I can do this?
I have read about printWhenExpression but not sure how to get in advance the row count in my table?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该会发现隐藏第一只宠物非常容易。使用标准 Print When 表达式。像这样的事情:
隐藏最后一个元素更难。请参阅此答案。
You should find it very easy to hide the first pet. Use a standard Print When Expression. Something like this:
Hiding the last element is harder. Refer to this answer.