saintlv Posted October 27, 2006 Share Posted October 27, 2006 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 More sharing options...
rsilverns.sympatico.ca Posted October 27, 2006 Share Posted October 27, 2006 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 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