2005 IR Help Posted September 2, 2006 Share Posted September 2, 2006 By: hillary - wikkitt Java app not loading report w/ subreports 2005-11-11 08:44 Hey there, My application is not loading any reports with subreports. I keep getting the error net.sf.jasperreports.engine.JRException: Could not load object from location : yesnoTotals.jasper .... I've compiled all my reports and subreports seperately, double checked the subreport connection and path, and everything runs fine in iReport. But it just won't work in my app. Can anybody help me with this? Thanks By: pubDispName - mellino RE: Java app not loading report w/ subreports 2005-11-11 08:55 For example i have a jar with all my .jasper file, you must write the path in SubreportExpression in this way: getClass().getResource("yourFile.jasper")).toString() My Example: getClass().getResource("/reports/".concat("LibroGiornaleIntestazione.jasper")).toString() 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