Home
Analytics
Displaying Dynamic Text & image
havyascv
Hello guys,
I wanted to know is it possible to display dynamic images which change based on some report parameters.My image is a watermarked text item.So,Also tell me if there is a possibility of text being of a watermark type in any of the controls?
can i use dynamic text box for this??
Find more posts tagged with
Comments
johnw
Dynamic Images:
http://digiassn.blogspot.com/2007/12/birt-dynamic-images.html
tmseidel
<blockquote class='ipsBlockquote' data-author="'havyascv'" data-cid="67069" data-time="1280990852" data-date="04 August 2010 - 11:47 PM"><p>
I wanted to know is it possible to display dynamic images which change based on some report parameters.<br /></p></blockquote>
In general yes. You can use scripting for determining the path to the image you want to show. See screenshot<br />
<img src='
http://farm5.static.flickr.com/4078/4862075133_5c105823f2.jpg'
alt='Posted Image' class='bbc_img' /><br />
<br />
<blockquote class='ipsBlockquote' data-author="'havyascv'" data-cid="67069" data-time="1280990852" data-date="04 August 2010 - 11:47 PM"><p>
My image is a watermarked text item.So,Also tell me if there is a possibility of text being of a watermark type in any of the controls?<br />
<br />
can i use dynamic text box for this??<br /></p></blockquote>
BIRT doesn't provide extended image manipulation. I'd recommend a servlet which streams the watermarked image. You can use e.g. ImageMagick for an easy watermark adding in your servlet. This servlet adress can be used as URI for your image.<br />
<br />
Tom
johnw
I looked, and there isn't a way to do Text as a watermark. Watermarks can be done if you go to the Master Page, and in the Advanced View, select background, and set the image, repeat (to none preferably), and positional coordinates.
I have to agree with Tom, your best bet is to use some servlet to do what you need if your generating dynamic text as an image. And since your talking about a dynamic watermark, its going to require some scripting on the Initialize or BeforeFactory event to get your logic, pass it on to the servlet to generate the image, and set the watermark property.
Its doable, I just don't happen to have an example handy. Let me know if you need one, I've been neglecting my blog lately, and need a few new articles to write.
John
havyascv
<blockquote class='ipsBlockquote' data-author="'johnw'" data-cid="67108" data-time="1281042900" data-date="05 August 2010 - 02:15 PM"><p>
I looked, and there isn't a way to do Text as a watermark. Watermarks can be done if you go to the Master Page, and in the Advanced View, select background, and set the image, repeat (to none preferably), and positional coordinates. <br />
<br />
I have to agree with Tom, your best bet is to use some servlet to do what you need if your generating dynamic text as an image. And since your talking about a dynamic watermark, its going to require some scripting on the Initialize or BeforeFactory event to get your logic, pass it on to the servlet to generate the image, and set the watermark property.<br />
<br />
Its doable, I just don't happen to have an example handy. Let me know if you need one, I've been neglecting my blog lately, and need a few new articles to write.<br />
<br />
John<br /></p></blockquote>
<br />
HEY JOHN,<br />
Plz do it for me,an example,if possible. I am not very good with scripting,so plz provide me with some example on your blog.<br />
I did visit you blog its like a bible for beginers like me....<br />
<br />
Will be looking forward for more info.Thank u