tt_linux Posted September 1, 2006 Share Posted September 1, 2006 hi,I am using iReport v1.2.4 I have a report that uses a jpeg image in the title band.In the image expression field, it ask for a absolute pathname, as in, /home/name/report/.../.jpg Now, when i move the report to another computer, it becomes invalid. How can i set it up as a relative pathname instead ? Or if not possible, how do i get around this problem. Please help. thanks,Tony Link to comment Share on other sites More sharing options...
Code_Slave Posted September 7, 2006 Share Posted September 7, 2006 you have a number of options. but you tell us nothing about your environment, so i will guess. 1. keep the images in the database & download them when needed2. keep them in the jar file ,if you are using java3. distribute them with your app, and pass in a URL to the image area, instead of hardcoding it in the report. 4. tell us more about the environment, to save us guessingPost edited by: code_slave, at: 2006/09/06 23:36 Link to comment Share on other sites More sharing options...
rsilverns.sympatico.ca Posted February 20, 2007 Share Posted February 20, 2007 Setup a parameter like "FILES_ROOT" or something. And have it be passed to the report to specify the root path to the image on each system. 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