how to set watermark text in code
how to set watermark text in code
Hi,
I am using stimulSoft web designer. I know that we can set the watermark text in UI. Can we do it in code and how? Thanks.
I am using stimulSoft web designer. I know that we can set the watermark text in UI. Can we do it in code and how? Thanks.
Re: how to set watermark text in code
Hello.
You could use next code to set watermark in code.
Thank you.
You could use next code to set watermark in code.
Code: Select all
report.Pages[0].Watermark.Angle = 45;
report.Pages[0].Watermark.Text = "MyWatermark";
Re: how to set watermark text in code
Thanks for your reply.
I have successfully put the image into the watermark (in code behind) before launching the designer. However, the image watermark is gone when I click new->new report, or new ->new report with wizard. I want to ask, is there anyway to keep the original designer settings when we click on any menu of the designer? Thanks.
I have successfully put the image into the watermark (in code behind) before launching the designer. However, the image watermark is gone when I click new->new report, or new ->new report with wizard. I want to ask, is there anyway to keep the original designer settings when we click on any menu of the designer? Thanks.
Re: how to set watermark text in code
Hello.
The watermark is not a Designer setting. This is a property of the report.
But it's possible to hide these menu items.
Thank you.
The watermark is not a Designer setting. This is a property of the report.
But it's possible to hide these menu items.
Thank you.
Re: how to set watermark text in code
We should have these new ->report menu, and we also should have our logo watermark image in the template. Any way to do it? Thanks.
Re: how to set watermark text in code
Hello.
Thank you.
It's possible to change this behaviour from our source code only.duheng wrote:We should have these new ->report menu, and we also should have our logo watermark image in the template. Any way to do it? Thanks.
Thank you.
Re: how to set watermark text in code
Is there any event fired when I click new -> report or new -> new report with wizard?
Re: how to set watermark text in code
Hello.
Thank you.
Unfortunately, there is no such events.duheng wrote:Is there any event fired when I click new -> report or new -> new report with wizard?
Thank you.