1

我正在开发包含子报告的报告,iReport并且我在主报告中传递了两个外部参数:CurrWeekCurrYear参数。我将相同的参数传递给子报表。

在两份报告中,我都将参数声明为BigDecimal. 当我运行报告时,它显示如下所示的错误:

   Error filling print...
        net.sf.jasperreports.engine.JRException:
     Incompatible java.math.BigDecimal value assigned to parameter 
    CurrWeek in the WeeklyReportForOtherWeek dataset. 
     net.sf.jasperreports.engine.JRRuntimeException: 
     net.sf.jasperreports.engine.JRException: 
     Incompatible java.math.BigDecimal value assigned to parameter 
     CurrWeek in the WeeklyReportForOtherWeek dataset.
4

1 回答 1

0

此错误意味着您将错误的类型从数据集传递到参数。

查看您正在创建(填充)数据集的位置。

于 2010-08-13T07:45:18.737 回答