dprogrammer Posted May 11, 2022 Share Posted May 11, 2022 Hi Everyone,I have a main report, main_report.jrxml which has a sub report called sub-report1.jasper and which also has a sub report called sub-subreport1.jasper. My main report is not able to find the sub report that is inside another subreport. Getting error: "resource not fount at "subreports/sub-subreport1.jasper". main_report.jrxml sub-report1.jasper sub-subreport1.jasperMain reports are in "MainReports" directory and sub reports are in "subreports" directory. I only have one subreports directory under MainReports which contains all sub reports including sub-subreport1.jasper.I am passing sub report path via parameter "SUBREPORT_DIR" from main to sub and to its sub-sub. It has a value of "subreports/". Why is JasperStudio still not able to find the sub report that is called from another subreport? Link to comment Share on other sites More sharing options...
erikmarbad Posted May 11, 2022 Share Posted May 11, 2022 You can write or show several images where the parameters of the addresses, the parameters of the subreports and also the information of the subreports (when they are embedded) are, there are many causes that can cause the problem.By the way, don't use - to separate words, use _ because if you ever plan to use JasperReports Server, it doesn't recognize the - Link to comment Share on other sites More sharing options...
shreekrishna.shankhwar Posted May 12, 2022 Share Posted May 12, 2022 you should have passed SUBREPORT_DIR ="./subreports/" i alwasy use by default for SUBREPORT_DIR ="./" then you can concat the folder if you different folder for each time . SUBREPORT_DIR alwasy required full path for path from current folder (.) dot is used for current folder Link to comment Share on other sites More sharing options...
dprogrammer Posted May 13, 2022 Author Share Posted May 13, 2022 That's what I have. Only first level sub-report is working and sub-report inside sub-report is not working. Sub reports are linked like the following:First sub report : SUBREPORT_DIR+ "sub-report1.jasper"2nd level sub-report: SUBREPORT_DIR + "sub-sub-report1.jasper" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now