Home DevShare Designing BIRT Reports

Watermark Examples

Share

by JasonW

Forum - 2,000 postsDevShare - 100 postsCommunity Advisor
Posted 02 Dec 2010 - 01:12 PM

(0)  (0)   (464 views)

By downloading this item, you are agreeing to the Terms of Use for the site.

Background/Watermark examples

Birt Version:-2.6

Two example reports that show using script to change the background image in a report.  See

 http://birtworld.blogspot.com/2010/12/birt-backgroundwatermark-images.html

For more details.

Download (6.37 KB)

By downloading this item, you are agreeing to the Terms of Use for the site.



Community AdvisorPoll VoterContributor Contest - 1 winForum - 100 posts

Megha Nidhi Dahal

Posted: 03 Dec 2010 - 05:30 AM

I have passed the url of the image file from the code, and have scripted the onPrepare method of a pallete inside either header or footer of the MasterPage like:this.getParent().getStyle().backgroundImage = params["bgimage"]; to achieve this option.

Forum - 2,000 postsDevShare - 100 postsCommunity Advisor

JasonW

Posted: 03 Dec 2010 - 06:29 AM

That is a great solution for changing the image at run time. I believe that method will still have the issue of exporting to another format from the viewer and wanting a different image for a different format.

Community AdvisorPoll VoterContributor Contest - 1 winForum - 100 posts

Megha Nidhi Dahal

Posted: 07 Dec 2010 - 03:34 AM

Ya, my approach won't be useful if it is to be exported to different formats from the viewer itself.In other cases we can identify which format the report is getting generated and so send the appropriate image's url from the code.
 
Filter More