iReport Import Background Image

матніѕ83 picture матніѕ83 · Oct 31, 2011 · Viewed 31.6k times · Source

I would know how to import a background image on iReport designer 4.1.2.

These are the step I take:

  • choose View->Report Designer->Import Background Image...
  • select my png image
  • choose View->Report Designer->Transform Background Image
  • click right on image and set Fit page width and Trasparency to 100%
  • finally click End Transformation

The background image appears properly in the report but when launch the preview it disappears!

What's wrong? I miss something?

PS: I discarded the Background band solution because the image exceed the report margins.

Answer

mdahlman picture mdahlman · Nov 1, 2011

Sorry, I didn't read the question carefully at first. You need to use the background band. Resize your image to be the appropriate size so you can use it. After doing that...

Export to PDF and you should see the background image. Export to XHTML and you should see the background image.

When you export to HTML background images won't display. The FAQ link on the JasperReports page explains things (like this!) that you need to consider in HTML reports.

The background image does not do what you want. It is intended to provide a background while you are editing the report in iReport. It has no effect on the final report.