BIRT Exchange Forum: PDF rendering: Images are not displayed - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

PDF rendering: Images are not displayed "URI images" are not dispalyed in a PDF rendered report. Rate Topic: -----

#1 User is offline   locutuz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 24
  • Joined: 25-October 11


Posted 20 February 2012 - 04:52 AM

Hello everybody,

I've got a problem concernig an image when my report is rendered as PDF.

The datasource is an XML file, where the location of the image is stored in a relative subfolder named "image".
E.g:
<XMLElement ImageLocation="./image/myImage.jpg" />

With the designer I put an Image-element on the report and set the "Select image from"-option to URI.
In the URI field I have: row["ImageLocation"]
This works fine when the report is rendered as HTML. But when I switch the rendering to PDF, the image isn't displayed.
Instead there is the message "The resource of this report item is not reachable."

When I change the XML-attribute value to an absolute path like: ImageLocation="file:/C:\temp\image\MyImage.jpg"
The image is displayed in both reports (HTML and PDF). But I'd like to reference the image in a relative way.
So I tried the following settings:
ImageLocation="file:/.\image\MyImage.jpg"
ImageLocation="file:/image\MyImage.jpg"
ImageLocation="file:/\image\MyImage.jpg"
ImageLocation="file:/./image/MyImage.jpg"
ImageLocation="file://image/MyImage.jpg"

Unfortunately I did not get the expected result.

I hope anybody can help me.
Thanks in advance.

Regards,
Sebastian
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users