views:

77

answers:

1

Hello friends i am developing report containing sub report using i-report and i am passing two external parameters in master report one week called CurrWeek and Year Called CurrYear and the same parameters are also passed in subreport in Both report i declared parameters as BigDecimal and when i run it shows Error shown bellow

   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.
A: 

This error mean that you pass wrong type from dataset to parameter.

Look at the place where you are creating (filling) dataset.

Vash