See Also

ActiveReport Class  | ActiveReport Members  | Watermark  | PictureAlignment Enumeration

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

WatermarkAlignment Property

Sets or returns the watermark's general vertical and horizontal position when it is added to the canvas.

[Visual Basic]
Public Property WatermarkAlignment As PictureAlignment
[C#]
public PictureAlignment WatermarkAlignment {get; set;}

Return Type

PictureAlignment enumeration.  The default value is PictureAlignment.Center.

Remarks

The watermark properties should be specified in or before the ReportStart event.

Example

[C#] 

private void arv_Load(object sender, System.EventArgs e) 

    rptDataDynamics rpt = new rptDataDynamics(); 
    rpt.Watermark=System.Drawing.Image.FromFile ("C:\\DSCF2183.JPG"); 
    rpt.WatermarkAlignment = DataDynamics.ActiveReports.PictureAlignment.BottomRight; 
    rpt.Run(); 
    this.arv.Document = rpt.Document; 
}

[Visual Basic] 

Private Sub Viewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Viewer1.Load
    Dim rpt As New rptDD
    rpt.Watermark = System.Drawing.Image.FromFile("c:\DSCF2183.JPG")
    rpt.WatermarkAlignment = DataDynamics.ActiveReports.PictureAlignment.BottomRight
    rpt.Run()
    Me.Viewer1.Document = rpt.Document
End Sub

See Also

ActiveReport Class  | ActiveReport Members  | Watermark  | PictureAlignment Enumeration

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.