Pass subreport variable to other subreport

2019-07-21 07:30发布

问题:

I want to pass already calculated variable from the first subreport (variable is defined is the master report) and pass it to the second subreport of the master report.

I already tried but in the second subreport I always get null value.

Please help!

回答1:

Please take a look at this solution. It boils down to using the correct Reset Type for the group the subreport is in. Furthermore make sure you are not using iReport 3.0.0.

Please also make sure you haven't set Blank when null as noted here