Jump to content

relative path to subreport : 3.1 ok 3.5 ko


nicomart

Recommended Posts

Hi all,

 

I want to call a subreport. Its jasper file is located in

D:/workspace/myproject/build/classes/MyDirectories/myReport.jasper

 

My settings are :

classpath : D:/workspace/myproject/build/classes

$subreportdir : "/mydirectories/"

subreport expression : $subreportdir + "myReport.jasper"

 

When I use this with Ireport 3.5.0 I got the message

"file not found exception /myDirectories/myReport.jasper"

as if Ireport did not pay attention to the classpath. When I set the $subreportdir to "D:/workspace/myproject/build/classes/myDirectories/" it works, but I cannot use it when deploying in my Java project...

 

I tried to open my jrxml file using Ireport 3.1 and it works perfectly, with both the first and second settings. Is there any regression between IR3.1 and IR3.5, or any new parameter to set for this type of operation ?

 

Thanks

 

Nico



Post Edited by Nicolas Martin at 04/08/09 14:24
Link to comment
Share on other sites

  • Replies 2
  • 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...