See Also

Page Class  | Page Members  | PageOrientation Enumeration  | Printer Class

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Orientation Property

Gets or sets the orientation of the page.

[Visual Basic]
Public Property Orientation As PageOrientation
[C#]
public PageOrientation Orientation {get; set;}

Return Type

PageOrientation enumeration value that specifies the orientation of the page.

Remarks

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

Example

[C#] 

private void rptPrint_ReportStart(object sender, System.EventArgs eArgs) 
{     
    this.PageSettings.Orientation = DataDynamics.ActiveReports.Document.PageOrientation.Landscape; 
}

[Visual Basic] 

Private Sub rptPrint_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Me.PageSettings.Orientation = PageOrientation.Landscape
End Sub

See Also

Page Class  | Page Members  | PageOrientation Enumeration  | Printer Class

 

 


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