Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to embed a backgound image?
Lea
Hi there, <br />
<br />
I'm trying to embed a background image into a report. But BIRT does not do what I expected. When choosing "embed" for the type of picture in the "Master Page - Advanced - Background - Background image"-Section it does not put the data into the report. Here is the xml-snippet:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<simple-master-page name="Simple MasterPage" id="2">
<property name="backgroundImage">pics.jpg</property>
<property name="backgroundImageType">embed</property>
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</pre>
<br />
What am I doing wrong? I do not want to take care of a separate image file.<br />
<br />
Thanks.
Find more posts tagged with
Comments
johnw
It should work. This is a copy of what I have.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<simple-master-page name="Simple MasterPage" id="2">
<property name="backgroundAttachment">fixed</property>
<property name="backgroundImage">BIRT-Exchange-200W.jpg</property>
<property name="backgroundImageType">embed</property>
<property name="backgroundPositionX">50%</property>
<property name="backgroundPositionY">50%</property>
<property name="backgroundRepeat">no-repeat</property>
<property name="backgroundSizeHeight">auto</property>
<property name="backgroundSizeWidth">auto</property>
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</pre>
<br />
This will keep the watermark floating on the page when you scroll. It won't "blend" it or "fade" it into the background like a traditional watermark, this will need to be done externally.
Lea
Thanks. But even in your example the data is not stored within the rptdesign-file. You only have the name of the jpg. If I use a normal image within the report the image can be stored within the xml,but for backgrounds this does not work.