swetha reddy Posted July 11, 2007 Share Posted July 11, 2007 hi, I have created a subreport in a master reportwhen i am trying to access the main report iam getting exceptions like net.sf.jasperreports.engine.JRException: Could not load object from location : .//AdjustmentClaimCompareReport_subreport1.jrxml at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:258)Please help me out i am new to this ireports and its very urgent. Thanks, Link to comment Share on other sites More sharing options...
codyjasperForge Posted July 12, 2007 Share Posted July 12, 2007 You have either deleted your subreport, moved your subreport, or renamed your subreport when you weren't supposed to... Try either of these solutions Link to comment Share on other sites More sharing options...
pvradhakrishna Posted June 24, 2008 Share Posted June 24, 2008 I solved this by passing a hashmap parameter parameters.put("SUBREPORT_DIR", "actual path to the subreport.jasper file location" );should also end with a '', don't forget escape characters '' if you are hard-coding the path rather than use a file.getAbosolutePath() or something.. You have to mention in the subReport.jasper location correctly. First check by opening in i-report the subReport.jrxml report properties to see if the name matches with the correct name, for example, "childReport" given in the parentReport.jrxml's subReport location/expression as $P{SUBREPORT_DIR} + "childReport.jasper" Make sure that the child is compiled to a ".jasper" before running your parent. Do a quick search if you cannot find it. If you don't know how to do that let me know!!! 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