Posted on 2007-08-13 23:09
kooyee 阅读(288)
评论(0) 编辑 收藏 所属分类:
Jasper Report
Print When Expression 定义为:
new java.lang.Boolean(($V{BACKGROUND}.intValue() % 2)==1)
Expression as Integer, but just entered 0. Make sure the expression reads:
new java.lang.Integer(0)
否则会出现Exception
Cannot cast from boolean to Boolean value = (java.lang.Boolean)((((java.lang.Integer)variable_BACKGROUND.getOldValue()).intValue() % 2)==1);