Posted on 2007-08-13 23:09
kooyee 閱讀(290)
評論(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);