空白时无法删除行 [英] Cannot remove line when blank

查看:64
本文介绍了空白时无法删除行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已选中删除空白行并设置表达式时打印 $ F {item}!= null .但是,如果数据为空,则无法删除该行.

I have checked Remove Line When Blank and set Print When Expression $F{item} !=null. But the row cannot remove when the data is null.

代码很长,我可以先提供设计布局,如果您希望我可以将您的jrxml文件发送给您,谢谢〜

The code is quite long, I can provide the design layout first, If you want i can send you my jrxml file, thanks~

推荐答案

我记得我以前没有这个问题,但是以某种方式出现了.

I remember I did not have this problem before, but somehow it appear.

当字段数据为空或为空时,选项在空白时删除行应该是删除字段,但是不起作用.

The option Remove Line When Blank should be remove field when field data is blank or null, but it didn't works.

然后我在Google上进行搜索,终于解决了该问题:

Then I search on Google, finally solved the problem:

该选项仅在field2不触摸field3时起作用.

the option only operates when the field2 don't touch field3.

也许您应该在Float上设置positiontype ...

Maybe you should set positiontype on Float...

它自然起作用...:欢呼:

naturally it works...:cheer:

来自链接:在空白时删除行?

这是因为我已经调整了字段的位置.

It's because I have adjusted the positions of fields.

我选中在空白时删除行选项的字段触摸了另一个字段,所以它不起作用.

The field that I checked Remove Line When Blank option is touch another field, so it don't works.

当我在iReport软件中拖动字段以确保它们彼此不接触时,问题已解决.

when I drag the field in the iReport software make sure they don't touch each other, the problem solved.

这篇关于空白时无法删除行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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