Page 1 of 1

cant add an image to watermark

Posted: Fri Aug 14, 2015 8:46 am
by Mandy
Hello,

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
The image 'Hintergrundbild' and also the text watermark are correctly on the report.
But the image watermark is not visible...

Is there sonething wrong in my code?

Thanks
Mandy

Re: cant add an image to watermark

Posted: Fri Aug 14, 2015 11:23 am
by Alex K.
Hello Mandy,

We couldn't reproduce this bug.
Please try to check the last prerelease build, if the issue still present please send us a sample project which reproduce the issue for analysis.

Thank you.