Jump to content
JasperReports Library 7.0 is now available ×

Problem with HTML report


heffingtond

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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