Skip to main content



      Home
Home » Archived » BIRT » Add image from xml datasource to BIRT report
Add image from xml datasource to BIRT report [message #799710] Thu, 16 February 2012 03:06 Go to next message
Eclipse UserFriend
Hello

Is it possible to add an image to a BIRT report from an XML datasource? I tried using the "Dynamic Image" approach, but this only allows me to add images from DB datasources that include the image as a BLOB. I have a string in my xml which refers to the image location on my filesystem.

Thanks for the help
Re: Add image from xml datasource to BIRT report [message #800186 is a reply to message #799710] Thu, 16 February 2012 14:53 Go to previous messageGo to next message
Eclipse UserFriend
Is it file pointer? If so you could always use the URI image and assign
it the row value or use an oncreate script for the image like:

this.URI = "file://C:/test/image.png";
or
var img = this.getRowData().getColumnValue("myrowimage");
this.URI = img;

Also have a look at :
http://birtworld.blogspot.com/2010/09/birt-image-report-item.html

Jason

On 2/16/2012 3:06 AM, Bernd van Velsen wrote:
> Hello
>
> Is it possible to add an image to a BIRT report from an XML datasource?
> I tried using the "Dynamic Image" approach, but this only allows me to
> add images from DB datasources that include the image as a BLOB. I have
> a string in my xml which refers to the image location on my filesystem.
>
> Thanks for the help
Re: Add image from xml datasource to BIRT report [message #800614 is a reply to message #800186] Fri, 17 February 2012 04:20 Go to previous message
Eclipse UserFriend
Thank you Jason, work great!
Previous Topic:PPT table of contents question
Next Topic:Convert String Date to Date in BIRT3.7.1
Goto Forum:
  


Current Time: Sat Jul 12 15:06:10 EDT 2025

Powered by FUDForum. Page generated in 0.06202 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top