cant add an image to watermark

Stimulsoft Reports.NET discussion
Post Reply
Mandy
Posts: 3
Joined: Fri Aug 14, 2015 8:27 am

cant add an image to watermark

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: cant add an image to watermark

Post 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.
Post Reply