Page 1 of 1
how to set watermark text in code
Posted: Mon Oct 14, 2013 6:41 pm
by duheng
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.
Re: how to set watermark text in code
Posted: Tue Oct 15, 2013 7:50 am
by HighAley
Hello.
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";
Thank you.
Re: how to set watermark text in code
Posted: Mon Oct 21, 2013 7:53 pm
by duheng
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.
Re: how to set watermark text in code
Posted: Tue Oct 22, 2013 10:09 am
by HighAley
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.
Re: how to set watermark text in code
Posted: Tue Oct 22, 2013 2:09 pm
by duheng
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
Posted: Wed Oct 23, 2013 9:26 am
by HighAley
Hello.
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.
It's possible to change this behaviour from our source code only.
Thank you.
Re: how to set watermark text in code
Posted: Thu Oct 24, 2013 9:11 pm
by duheng
Is there any event fired when I click new -> report or new -> new report with wizard?
Re: how to set watermark text in code
Posted: Fri Oct 25, 2013 11:40 am
by HighAley
Hello.
duheng wrote:Is there any event fired when I click new -> report or new -> new report with wizard?
Unfortunately, there is no such events.
Thank you.