heffingtond Posted April 19, 2007 Share Posted April 19, 2007 Hi,My application is producing reports in HTML and PDF formats in the Websphere container. When viewing the PDF, the report is fine. However, the HTML version has 'missing image' boxes (boxes with red Xs) scattered all through the document. I am not using any images in the report, so I guess these are formatting blocks added by iReports.(?) When unit testing on a JBoss localhost, the HTML report looks fine. I set the resp.setContentType("text/html"), but this did not change anything. Any suggestion would be greatly appreciated!Thanks,David. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted April 19, 2007 Share Posted April 19, 2007 Hi, This is because you did not configure the image servlet to deliver the images for the HTML, like shown in the /demo/samples/webapp sample provided with the project.If you think your reports will never contain images and you don't care about this servlet, then you could generate a form of HTML that does not use images for perfect alignment by setting the IS_USING_IMAGES_TO_ALIGN exporter parameter to Boolean.FALSE, when exporting the report. This means you need to work with a JRHtmlExporter instance directly and not use the export manager. I hope this helps.Teodor 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