Home
Analytics
Embeed Watermark Image
ThomasPz
<p>Hello,</p>
<p> </p>
<p>I've created a report with a watermark. If I put the watermark image at the right place it worked fine.</p>
<p>Is there a way to use an embeeded Image as Style Background?</p>
<p> </p>
<p>Thomas</p>
Find more posts tagged with
Comments
ThomasPz
<p>Hello,</p>
<p> </p>
<p>i solved it. I add the image as an embedded Image to the report. In the imageref of the style oder masterpage-background I set the value to an own url-format "embedded:watermark.jpg" and than I write an own IResourceLocator.</p>
<pre class="_prettyXprint">
public abstract URL findResource(ModuleHandle paramModuleHandle, String paramString, int paramInt, Map paramMap);</pre>
<p>In this method I will check if the paramString begins with "embedded" and than I read the image from the ModuleHandle, write it to tempfile and return the correct url to the file.</p>