2004 IR Help Posted August 21, 2006 Share Posted August 21, 2006 By: Manuel Lamotte - gaco_warlock Fill Report not working 2005-04-21 03:28 Hello, I have created a report containing an image using Jasper Assistant. The Preview in Jasper Assistant has worked. In next step, I have written a servlet. I compiled the report and then I tried to fill the report, but I always got the error: Image not found: image.jpg although the image lies in the same directory as the compiled report (.jasper) file. I filled the report using: ... jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, connection); ... Please help. Thank you. Regards Manuel Lamotte By: Lukas - loester RE: Fill Report not working 2005-04-21 04:16 It might help to either pass the full path of the image or to add the path of the image to the jasper.reports.compile.class.path property. I have not worked with images yet though, so it's only a guess. By: Manuel Lamotte - gaco_warlock RE: Fill Report not working 2005-04-21 04:17 Hi again, I found a temporary solution for the problem. When I use a Parameter for the Report (baseDir=AbsolutePathToImageDir) and insert the image with the java.io.File option [new File($P{baseDir}+"image.jpg")] the filling works. The Servlet displays the images correct, but I think the solution using the java.lang.String option must be possible? Waiting for help... Manuel Lamotte By: Denny Valliant - xenden RE: Fill Report not working 2005-04-21 11:31 When I use http paths the images work. http://www.some.site/Images/someImage.jpg for example. Don't know if this is an option for you... Once again, SWEEt PROJECT!!!!! 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