Jump to content
JasperReports Library 7.0 is now available ×

Path of subreport


2005 IR Help

Recommended Posts

By: petershen - pshen

Path of subreport

2004-02-16 19:15

hi

I met a problem when i created a report with a subreport.

I put the master report and subreport in a same folder, and when i define the sub as "sub.jasper" in the master report, It seems the file cannot be found. And when I defined as "d:\reports\sub.jasper", It runs OK.

 

But you know,the directory maybe changes.

Thanks so much for any help?

 

Regards,

Peter

 

 

 

 

By: Teodor Danciu - teodord

RE: Path of subreport

2004-02-19 12:59

 

Hi,

 

The best way to do it is to place the *.jasper files

in the classpath and use their classpath relative

location to reference them.

Just like you do with the class files arranged on

packages.

 

I hope this helps.

Teodor

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