I have a report Report1 that contains a lot of sub-reports (subReport1, subReport2, etc...) linked inside a table (in the table cell i have insert a sub-report).
In JasperStudio i have put all subreport's file in a folder in the same project:
Report1 reference to the subreports by her *.jasper file (exemple of Expression parameter: "subReport/subReport1.jasper) and work perfectaly.
Now, when i put all in the server (maintaining the same folder hierarchy but all put in the server's folder /Process) i have this error:
net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Resource not found at : subReports/subReport1.jasper
How i can fix this problem?
(i have try to change the path to /Process/subReports/subReport1.jasper but nothing...)
You should better use a reference like : "repo:subreport1.jrxml" for your subreports.
If you do this way you have to upload the relative jrxml file under the "Ressources" path of your main report (iReport) or directly in the main report path (jaspersoft studio) .
You'll have somthing like :