ActiveReports.Viewer3 Request technical support
Orientation Property
See Also  Example


Gets or sets the orientation of the page.

Syntax

Visual Basic (Declaration) 
Public Property Orientation As PageOrientation
Visual Basic (Usage)Copy Code
Dim instance As Page
Dim value As PageOrientation
 
instance.Orientation = value
 
value = instance.Orientation
C# 
public PageOrientation Orientation {get; set;}

Return Value

PageOrientation enumeration value that specifies the orientation of the page.

Example

C#Copy Code
private void rptPrint_ReportStart(object sender, System.EventArgs eArgs)
{    
   
this.PageSettings.Orientation = DataDynamics.ActiveReports.Document.PageOrientation.Landscape;
}
Visual BasicCopy Code
Private Sub rptPrint_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Me.PageSettings.Orientation = PageOrientation.Landscape
End Sub

Remarks

The Printer.PaperHeight measurement is for the portrait orientation of the paper.  In Landscape, the height is equal to Printer.PaperWidth.

See Also