当前位置: 代码迷 >> 报表 >> iReport中字段值替0时显示空白
  详细解决方案

iReport中字段值替0时显示空白

热度:283   发布时间:2016-05-05 08:00:27.0
iReport中字段值为0时显示空白
在选择字段的时候  写JAVA代码 如果字段是CHAR型 的 就行"".eques()   或者直接从SQL语句搞定select decode(colname,"0","",colname) from dual; 这个是oracle的写法
 
在ireport报表里这样做可以了$F{AMOUNT_02}==0.0?" ":$F{AMOUNT_02}