How to add a Watermark?
-
- Posts: 39
- Joined: Tue Dec 20, 2011 8:07 am
- Location: Germany
How to add a Watermark?
Hey guys,
could you provide a sample, how to add a watermark during runtime?
I've looked around, but couldn't find examples.
Which libraries do i have to import?
Kind regards
could you provide a sample, how to add a watermark during runtime?
I've looked around, but couldn't find examples.
Which libraries do i have to import?
Kind regards
How to add a Watermark?
Hello,
You can use the following code:
report.Pages[0].Watermark.Angle = 45;
report.Pages[0].Watermark.Text = "MyWatermark";
...
Can you please describe your task in details?
Thank you.
You can use the following code:
report.Pages[0].Watermark.Angle = 45;
report.Pages[0].Watermark.Text = "MyWatermark";
...
Can you please describe your task in details?
Thank you.
-
- Posts: 39
- Joined: Tue Dec 20, 2011 8:07 am
- Location: Germany
How to add a Watermark?
Hi Aleksey,
ok, my problem was, that i programmed in VB.Net and didn't replace these '[' with these '('.
I dont get an error report now, but also the water mark is not shown. is it possible, that this is because i use the demo files?
Kind regards
ok, my problem was, that i programmed in VB.Net and didn't replace these '[' with these '('.
I dont get an error report now, but also the water mark is not shown. is it possible, that this is because i use the demo files?
Kind regards
How to add a Watermark?
Hi Mietzekotze,
you have to set the watermark enabled.
report.Pages(0).Watermark.Enabled = true
Cheers
stephan
you have to set the watermark enabled.
report.Pages(0).Watermark.Enabled = true
Cheers
stephan
-
- Posts: 39
- Joined: Tue Dec 20, 2011 8:07 am
- Location: Germany
How to add a Watermark?
Hey Stephan,
doesn't work, either. Probably it's something really stupid i forget. I have this:
report.Pages(0).Watermark.Enabled = True
report.Pages(0).Watermark.Angle = 45
report.Pages(0).Watermark.Text = "MyWatermark"
before i load the report. Do i have to mind something else?
doesn't work, either. Probably it's something really stupid i forget. I have this:
report.Pages(0).Watermark.Enabled = True
report.Pages(0).Watermark.Angle = 45
report.Pages(0).Watermark.Text = "MyWatermark"
before i load the report. Do i have to mind something else?
How to add a Watermark?
What you mean with before load ?mietzekotze wrote:Hey Stephan,
doesn't work, either. Probably it's something really stupid i forget. I have this:
report.Pages(0).Watermark.Enabled = True
report.Pages(0).Watermark.Angle = 45
report.Pages(0).Watermark.Text = "MyWatermark"
before i load the report. Do i have to mind something else?
before using StiReport.Load(filename) ?
if so, you have to set the watermark after loading the report. If you set it before loading it will be overwritten by loading the report.
thx
-
- Posts: 39
- Joined: Tue Dec 20, 2011 8:07 am
- Location: Germany
How to add a Watermark?
Thank you. That was it 
