...
- In the parent report, configure a parameter called SUBREPORT_DIR. This parameter is passed to the report from OpenMRS and points to the directory in which the report ZIP archive has been extracted to. Note that the path includes a file separator at the end. E.g. {{
Code Block |
---|
\# : "/usr/local/tomcat/OpenMRS/reports/13/" |
...
\# : "c:\OpenMRS\reports\13\" |
- }}Add your Subreport to your report and configure the "Subreport Expression" on the "Subreport (Other)" tab of the Subreport properties dialog as follows: :
{{
: $P
Code Block |
---|
\# : $P\{SUBREPORT_DIR\}\+ "subreport-filename.jasper" |
...
|
: This tells your report where to find the Subreport file.
...