I have a problem with adding a watermark:
Code: Select all
Dim img As New Report.Components.StiImage
img.Left = 0
img.Top = 0
img.Name = "Hintergrundbild"
img.File = "C:\_Entwicklung\tmp\logo.png"
img.Width = 10
img.Height = 10
reportObj.Pages(0).Components.Add(img)
reportObj.Pages(0).Watermark = New Report.Components.StiWatermark
With reportObj.Pages(0).Watermark
.Image = Drawing.Image.FromFile("C:\_Entwicklung\tmp\logo.png")
.Enabled = True
.ImageAlignment = Drawing.ContentAlignment.MiddleCenter
.ImageStretch = True
.ShowBehind = False
.ShowImageBehind = False
.Text = "watermark!"
End With
But the image watermark is not visible...
Is there sonething wrong in my code?
Thanks
Mandy