我在iReport中有一个变量,其数据类型是
的两倍。$V{s_management_fee}
我想创建一个新的变量名作为“ manag_fee”,它与Variable Express一样
$V{s_management_fee}*0.1
但是出现诸如
正在编译为文件... /opt/vgreports/Local_SalaryStatement_AllAgency.jasper 编译/opt/vgreports/Local_SalaryStatement_AllAgency.jasper时出错! 编译例外:com.jaspersoft.ireport.designer.compiler.ErrorsCollector@770c789a net.sf.jasperreports.engine.JRException:编译报告表达式类文件时遇到错误:1.操作符的类型是未定义的Double,double值=(java.lang.Double)((((java.lang.Double)variable_s_management_fee.getValue())* 0.1); // $ JR_EXPR_ID = 52 $``<------------------------------------------ ------------------> 2.运算符*对于参数类型Double,double double类型,值==(java.lang.Double)(((java。 lang.Double)variable_s_management_fee.getOldValue()* 0.1); // $ JR_EXPR_ID = 52 $``<------------------------------------------ ---------------------> 3.对于参数类型Double,double double的运算符*未定义,value =(java.lang.Double)(( (java.lang.Double)variable_s_management_fee.getEstimatedValue())* 0.1); // $ JR_EXPR_ID = 52 $``<------------------------------------------ ---------------------------> net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:191中的3个错误)com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:493)在org.openide.util.RequestProcessor $ Task.run(RequestProcessor.java:572)在org.openide.util.RequestProcessor $ Processor.run(RequestProcessor.java:997)