java - Relative path for the Subreport -
I am working with iReport 3.5.0, and I am using a subreport within my main report . I do not want to give full path to the subreport expression, but for example if i have to give "bpSubReport.jasper" as sub-port expression (because sub and main are in the same directory), iReport can find bpSubReport.jasper And compile the main report in bPReport.jasper, but my Java can not apply. It throws an exception
net.sf.jasperreports.engine.JRException: the object could not be loaded from place: bpSubReport.jasper
You can help me with a relative path for the subreport and give it to the Java app. also know? Thank you.
OK I got an answer.
You can not do this. You can not use relative paths for your sub-report, you can try compiling the .jrxml files in runtime or something, but relative paths with external servers or file systems do not work.
Comments
Post a Comment