Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Add image from xml datasource to BIRT report
Add image from xml datasource to BIRT report [message #799710] Thu, 16 February 2012 08:06 Go to next message
Bernd van Velsen is currently offline Bernd van Velsen
Messages: 19
Registered: November 2009
Junior Member
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 19:53 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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 09:20 Go to previous message
Bernd van Velsen is currently offline Bernd van Velsen
Messages: 19
Registered: November 2009
Junior Member
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: Wed Sep 17 19:55:25 GMT 2014

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

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