Skip to main content



      Home
Home » Archived » BIRT » Scripting which images to include in my report
Scripting which images to include in my report [message #39395] Mon, 23 May 2005 17:57 Go to next message
Eclipse UserFriend
I would like to pick and include images based on RowSet Data
information. So the rowset would have a column that would list the
images to use. The question then is, how do I get the image in the
report? First I looked at the Image pallette choice but it doesn't seem
scriptable. So.... one thought I had was to add a data field to the
report, and in here use java script and the row information to create an
html <img ..> tag with the path to the file to use. would this work in
pdf form as well?

Whats the best way to do this at the moment?
Re: Scripting which images to include in my report [message #40692 is a reply to message #39395] Tue, 24 May 2005 19:09 Go to previous message
Eclipse UserFriend
Mike,

It turns out that the Image url property is an expression, and you should be
able to create an expression that gets the url value from your data row.
There is a problem in M3 that the UI treats this property as a fixed string.
There is a bug filed to fix this; but it is not clear if the fix will make
it into the 1.0 release. You can try setting the property using the Property
view (not the property editor.) If all else fails, try setting it in the XML
using a text editor.

AFAIK, the PDF generator should correctly fetch the image; it should not
care if the image was set as a constant string or an expression. However, I
suspect that, due to the UI bug mentioned above, this feature has probably
not yet been tested, so you'll be a bit of a pioneer. Please let us know if
it works or if you run into problems.

- Paul

Paul Rogers
BIRT PMC

"Mike Boyersmith" <mjboyers@us.ibm.com> wrote in message
news:d6tjod$s1s$1@news.eclipse.org...
>I would like to pick and include images based on RowSet Data information.
>So the rowset would have a column that would list the images to use. The
>question then is, how do I get the image in the report? First I looked at
>the Image pallette choice but it doesn't seem scriptable. So.... one
>thought I had was to add a data field to the report, and in here use java
>script and the row information to create an html <img ..> tag with the path
>to the file to use. would this work in pdf form as well?
>
> Whats the best way to do this at the moment?
>
>
>
>
>
>
>
>
Previous Topic:DataRow.rowNo how does this work
Next Topic:Viewer M3
Goto Forum:
  


Current Time: Tue Jul 22 13:02:44 EDT 2025

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

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

Back to the top