Jump to content
Changes to the Jaspersoft community edition download ×

Urgent:Jasper report pointing to changed image loc


saintlv

Recommended Posts

So sorry but need a quick reply before project submission. I got about 50 jasper files with an image in them. However they have been compiled in such a way that it points to

 

C:Documents and SettingsMr ***DesktopUntitled-1.jpg

 

I cant seem to rename or move the file without getting and error. How can i move the file to somewhere else then link it back. Thank you for your help.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

The image expression within the jasperreport would need to change to point to the new image in order for it to find the image. If your reports have been compiled to a .jasper file and you no longer have access to the .jrxml file you can re-create the original .jrxml file with the following java code:

 

Code:
 JRXmlWriter.writeReport(jasperReport, "c:\xml_output_file.jrxml", "ISO-8859-1"«»); 

 

Where jasperReport is the JasperReport object.

Link to comment
Share on other sites

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