watermark and company stamp [message #549897] |
Wed, 28 July 2010 07:54  |
Eclipse User |
|
|
|
Hallo,
I want to print a watermark and a company stamp on my report.
For both i can use the background image on the master page. But I don't have found any possibility to take an image from the filesystem which is defined in a report datasetrow.
And then I have a problem to set the visibility of the image. There is no visibility definition on the background image and also not on the master page. But the watermark "copie" only should be printed, if the parameter P_ORIGINAL is not set.
Is there any way to solve this problems?
Thanks for your help.
pigargo
[Updated on: Wed, 28 July 2010 07:54] by Moderator
|
|
|
|
|
|
|
Re: watermark and company stamp [message #552101 is a reply to message #549897] |
Tue, 10 August 2010 16:24  |
Eclipse User |
|
|
|
The answer to all these questions is some scripting.
What I would recommend is that you use a dynamic parameter that is
populated by your dataset. Then, using some event handling scripting,
use something along the following lines in the beforeFactory event to
get the value from your database.
if (params["pImage"] == true)
{
reportContext.getReportRunnable().getDesignInstance().getMas terPage( "myMasterPage").getStyle().backgroundAttachment
= "fixed";
reportContext.getReportRunnable().getDesignInstance().getMas terPage( "myMasterPage").getStyle().backgroundImage=
params["watermark"];
reportContext.getReportRunnable().getDesignInstance().getMas terPage( "myMasterPage").getStyle().backGroundPositionX
= "50%";
reportContext.getReportRunnable().getDesignInstance().getMas terPage( "myMasterPage").getStyle().backGroundPositionY
= "50%";
reportContext.getReportRunnable().getDesignInstance().getMas terPage( "myMasterPage").getStyle().backgroundRepeat
= "no-repeat";
}
Using the dynamic parameter is the only way to get access to data in a
dataset in the generation phase.
John
On 7/28/2010 6:54 AM, pigargo wrote:
> Hallo,
>
> I want to print a watermark and a company stamp on my report.
> For both i can use the background image on the master page. But I don't
> have found any possibility to take an image from the filesystem which is
> defined in a report datasetrow.
> And then I have a problem to set the visibility of the image. There is
> no visibility definition on the background image and also not on the
> master page. But the watermark "copie" only should be printed, if the
> parameter P_ORIGINAL is not set.
>
> Is there any way to solve this problems?
>
> Thanks for your help.
|
|
|
Powered by
FUDForum. Page generated in 0.24103 seconds