Jump to content
JasperReports Library 7.0 is now available ×

Java app not loading report w/ subreports


2005 IR Help

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...