Home
Analytics
Create a overlay
rnyholm
I've been given the task to add a overlay to some BIRT reports depending on a condition. For now I've solved this by adding a background image to my report design programmatically in the beforeFactory() script. But this solution isn't really good, because the overlay will be placed at the "bottom" on the report and this means that if I for example print a lot of content in my report then the overlay will be printed over.
So have you any tips and/or examples on how to achieve this overlay, preferably a complete textbased solution. I should also add that I'm an totally new in using BIRT so bare with me on this one.
Find more posts tagged with
Comments
mwilliams
Can you show a screenshot of what you're talking about?
rnyholm
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="117453" data-time="1370649033" data-date="07 June 2013 - 04:50 PM"><p>
Can you show a screenshot of what you're talking about?<br /></p></blockquote>
Maybe it was a bit messy description :mellow: But what I bascially wan't to achieve is to add an overlay saying "test" over the whole page based on some condition. But I have no idea how to do this? Once again I'm totally new to BIRT and I found the documentation very minimalistic so any help I get is really appreciated.
mwilliams
That's what I figured, but wasn't quite sure. The way this has been done before is to use a background image, like you described. If you have something like "DRAFT" or "TEST" across the background, I wouldn't think it would show through no matter how full the page gets. What does your image look like? Is it just a small "test" text?
rnyholm
Okey so I've been on the right track then by using the background image as an "overlay". I've attached the image file I'm using to achieve this.<br />
Btw this thread is closely related to <a class='bbc_url' href='
http://www.birt-exchange.org/org/forum/index.php/topic/29559-use-embedded-image-in-beforefactory/http://'>"Use
embedded image in beforeFactory()"</a>, and the reason why I started this thread was that I thought there was some standard way to create a "overlay" on reports in BIRT other then setting a background image.<br />
But if I get the solution to work in my other thread I'll be satisfied.
mwilliams
Sounds good. I'll check out the other thread.