Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1833
Watermark
posted

Is there an example of adding a watermark to a to Infragistics.Documents.Report?

Thanks!

  • 469350
    Verified Answer
    Offline posted

    Hi,

    I think you can use the a Decoration for this:


    //Decoration
    IDecoration decoration = section.AddDecoration();

    decoration.Rear = false;

    text = decoration.AddText(240, 450, -15);
    text.Style.Brush = new Infragistics.Documents.Graphics.HatchBrush(Infragistics.Documents.Graphics.HatchStyle.Sphere, new Infragistics.Documents.Graphics.Color(Color.Red), new Infragistics.Documents.Graphics.Color(Color.Transparent));
    text.Style.Font.Size = 30;
    text.Style.Font.Bold = true;
    text.AddContent("SEAL OF APPROVAL");
    text.Width = AutoWidth.Instance;
    text.Borders = new Borders(new Infragistics.Documents.Graphics.Pen(new Infragistics.Documents.Graphics.Color(Color.Red), 5), 5);