sgarciaf Posted May 3, 2012 Share Posted May 3, 2012 Hello,We have a report that works fine in our old server. That report has a chart. You can see "reportOK.png" to see the result of the report.We are changing from the old server to a new one, and the report doesn't work in the new server. The same chart is missing the labels and the label numbers (see "reportKO"). We tried to add jasper-fonts to our classpath, and it solved a problem that we had since the beggining; the fonts not showing properly, but that solution didn't solve our main problem.We are using jasper reports 3.7.3.Anyone can help us? Thanks, SaraPost Edited by sgarciaf at 05/04/2012 07:01 Link to comment Share on other sites More sharing options...
sabinash Posted May 4, 2012 Share Posted May 4, 2012 can you tell, These charts are showing in html or any other format ? its urgent !!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
sgarciaf Posted May 4, 2012 Author Share Posted May 4, 2012 They are showing OK in the local tests i did, but i cant telll you if they are showing ok in other formats. Link to comment Share on other sites More sharing options...
sabinash Posted May 4, 2012 Share Posted May 4, 2012 I did charts in my application, these are showing ok in pdf format, when try to run the report in html format, the charts images are not founr, the broken images are displayin on html out put instead of charts, pls tell your charts are running on which format. Link to comment Share on other sites More sharing options...
sgarciaf Posted May 4, 2012 Author Share Posted May 4, 2012 In PDF. Link to comment Share on other sites More sharing options...
sabinash Posted May 4, 2012 Share Posted May 4, 2012 Thanks For your quick response, In for me also in PDF these charts are working fine, i am facing the issue when i am trying show these charts in html output, if you have any solution for html format please let me know..Thanks in advance Link to comment Share on other sites More sharing options...
sgarciaf Posted May 7, 2012 Author Share Posted May 7, 2012 Looking for a solution. Can it be the problem one of the libraries? I tried to change the render type of the chart to image and it works, but the quality sucks.We are using:jfreechart: jfreechart-1.0.12.jariText: iText-2.1.7.jarjcommon: jcommon-1.0.15.jarwith jasper: jasperreports-3.7.6.jar Link to comment Share on other sites More sharing options...
sabinash Posted May 7, 2012 Share Posted May 7, 2012 Thnks Sara for reply, I have all the required library, itext-2.1.7.jarjasperreports-4.5.1.jarjcommon-1.0.15.jarjfreechart-1.0.12.jar Problem is, i am actually using the struts2, same thing i tried in simple servelet and jsp, images are coming good in html output, when i tried in struts2 the images not coming as it should be. problem in stuts2 the exporter parameter i.eexporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, request.getContextPath()+"/servlets/image?image="); This parameter actually not working in struts2 ThanksAbinash Link to comment Share on other sites More sharing options...
sgarciaf Posted May 7, 2012 Author Share Posted May 7, 2012 Solved.We had OpenJdk 6. Moving to Oracle Jdk 6 solved the problem. Thanks,Sara Link to comment Share on other sites More sharing options...
sabinash Posted May 7, 2012 Share Posted May 7, 2012 Thanks for your response, i am using actually oracle jdk 1.6 in my application, I dont think it is jdk problem. These things are working good in simple web application without struts2. In struts2 these images are not working, kindly give any idea about jasper report with struts2 with html output Thanks In AdvanceAbinash 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