How to get the ReportDesign class of some subreport on the server for scriptlet-based modifications?
问题 Locally I have a master.jrxml report and some subreport.jrxml and can load and manipulate the subreport via ReportDesign design = JRXmlLoader.load( "/local-file-dir/path/to/subreport.jrxml" ) in the Scriptlet code. On the server, the above load method (trigged by my master.jrxml ) obviously cannot deal with repo paths, no matter what I tried (basically net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: ... ) ( subreport.jrxml uploaded as a JRXML File Resource - not as