Where should we put the images that are used in the templates of iReports ? (for example the leaf_banner_violet.png referenced from the Leaf Violet template. Apparently not in the images folder where also the formspider.logo2.png is located.

asked 27 Feb '13, 02:27

ik_zelf's gravatar image

ik_zelf
58312
accept rate: 16%


Hi Ronald,

To be able to use an image, in iReports, you have to set the "image expression" attribute of the image to the absolute path value of your image. As an example, you can use "C:\\reports\\leaf_banner_violet.png" as the image expression value after locating your leaf_banner_violet.png image under c:\reports folder.

Hope this helps,
Ibrahim

link

answered 27 Feb '13, 05:12

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5
accept rate: 25%

edited 27 Feb '13, 05:12

thanks Ibrahim, I was hoping for something relative to the reports ....

(27 Feb '13, 05:49) ik_zelf

A better solution is here Adding dynamic path to images in Jasper Reports

The trick is to use a parameter or a field where you have control of to specify the image location. In my case, I read it from the database, from a parameter table.

link

answered 16 Apr '13, 08:27

ik_zelf's gravatar image

ik_zelf
58312
accept rate: 16%

Thanks for sharing Ronald.

(17 Apr '13, 04:00) Ibrahim Sand... ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×7
×5
×5

Asked: 27 Feb '13, 02:27

Seen: 9,179 times

Last updated: 17 Apr '13, 04:00


© Copyright Gerger 2017