kooyee ‘s blog

开源软件, 众人努力的结晶, 全人类的共同财富
posts - 103, comments - 55, trackbacks - 0, articles - 66
   :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

Expression 应用

Posted on 2007-08-13 23:09 kooyee 阅读(283) 评论(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);

只有注册用户登录后才能发表评论。


网站导航: