Search code examples
jasper-reports

How to declare and use a jasper parameter in a sub report without declaring it in my main report?


I'd like to use parameters for a sub report (footer).

Is there a simple way to declare a parameter and using it only in the sub report ?

I have already a working solution, but I have to :

  • declare my parameters in the main report
  • declare my parameters in the main report as a sub report parameter
  • declare my parameters in the sub report to finally being able to use it

I work on xml files directly, without iReport.


Solution

  • Basically, we can't. It is not possible.