Jump to content
Changes to the Jaspersoft community edition download ×

Accessing reports and subreports from a JAR


Recommended Posts

By: Rick Rogerson - gr8north

Accessing reports and subreports from a JAR

2003-09-08 07:31

Our desire is to put all .jasper files into a jar for easy distribution. Using a stream in code to point to the master report stored in the jar seems to work fine. However, subreports on that main report cannot be accessed from the jar.

"dori.jasper.engine.JRException: Could not load object from location : SubReport1.jasper"

 

If they exist stand alone in the file system, all is well.

 

Is there a way for subreports to be accessed from the jar by Jasper?

 

Any help is gr8'ly appreciated.

 

 

 

 

By: Rick Rogerson - gr8north

RE: Accessing reports and subreports from a JAR

2003-09-08 08:38

Problem Resolved.

 

All that was required was to fully qualify the path on the subreportExpression within the master report.

 

Thanks to all who thought about it for us.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...