llaconde Posted February 27, 2008 Share Posted February 27, 2008 Hello, I have a report (points.jrxml) that contains a subreport(activite.jasper)When I do it in my iReport, that's working fine. But I do it in my web application, I have the following error:"could not load object from location activite.jasper".And I have the two documents (jrxml and jasper) in the same directory.Thank you for your help. Link to comment Share on other sites More sharing options...
llaconde Posted February 27, 2008 Author Share Posted February 27, 2008 I found the solution!!!! I add a parameter:parameters.put("SUBREPORT_DIR", rep.getAbsolutePath() +"\rapport\");to specify the good path. I hope that will help someone...:laugh: Link to comment Share on other sites More sharing options...
ckalsdorf Posted February 29, 2008 Share Posted February 29, 2008 Hi, I have a subreport which has a subreport inside, and here I get "could not load object from location .".If I delete the subreport in the subreport and specify the SUBREPORT_DIR everything work fine.Thanks in advance for your help. Chris Link to comment Share on other sites More sharing options...
ckalsdorf Posted February 29, 2008 Share Posted February 29, 2008 Sorry for the previous post.Found the solution: It is possible to nest subreports, you just have to specify the SUBREPORT_DIR as paramter for all subreports and pass them in as subreport param from the mother report. Maybe this also helps someone ;) 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