Hai,
I want to execute the report from the server.
this report has the 3 subreports.
I have created the main report and 3 subreports using iReport designer.
Through iReport designer the report is executing fine.
Problem :
I placed the main report and 3 subreports into jasperServer. [All .JRXML files has been placed into the jasperserver]
/reports/jobhistory/mainreport
/reports/jobhistory/subreport1
/reports/jobhistory/subreport2
/reports/jobhistory/subreport3
But main report is not executing.
It's giving the exception like
how to define the SUBREPORT_DIR path in main report before placing into the JasperServer.
please help me here,
Thanks in advance,
Surendra.
I want to execute the report from the server.
this report has the 3 subreports.
I have created the main report and 3 subreports using iReport designer.
Through iReport designer the report is executing fine.
Problem :
I placed the main report and 3 subreports into jasperServer. [All .JRXML files has been placed into the jasperserver]
/reports/jobhistory/mainreport
/reports/jobhistory/subreport1
/reports/jobhistory/subreport2
/reports/jobhistory/subreport3
But main report is not executing.
It's giving the exception like
how to define the SUBREPORT_DIR path in main report before placing into the JasperServer.
please help me here,
Thanks in advance,
Surendra.
1 Answer:
Posted on August 15, 2007 at 10:04pm
Hi!
There are several possibilities.
(1) remove the $P{SUBREPORT_DIR} from the subreport path (subreport expression), and also the SUBREPORT_DIR parameter from the set of parameters. As the subreports are in the same location (on JS) as the main report, the subreports should by found
(2) When using the jasperserver-plugin for iReport, you can use drag&drop to place a subreport onto the main report. Then, the URI repo:/path/to/subreport is automatically used. Of course, the repo: URI only works when running the reports from JS, thus, via the plugin, or via the web interface.
Hope this helps,
Sebastian
There are several possibilities.
(1) remove the $P{SUBREPORT_DIR} from the subreport path (subreport expression), and also the SUBREPORT_DIR parameter from the set of parameters. As the subreports are in the same location (on JS) as the main report, the subreports should by found
(2) When using the jasperserver-plugin for iReport, you can use drag&drop to place a subreport onto the main report. Then, the URI repo:/path/to/subreport is automatically used. Of course, the repo: URI only works when running the reports from JS, thus, via the plugin, or via the web interface.
Hope this helps,
Sebastian