Gets or sets the page orientation.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[DefaultValueAttribute(OrientationEnum.Auto)] public OrientationEnum Orientation { get; set; } |
Visual Basic |
---|
<DefaultValueAttribute(OrientationEnum.Auto)> _ Public Property Orientation As OrientationEnum Get Set |
Remarks
The default value for this property is OrientationEnum.Auto.
Examples
The following code uses the Orientation property to render the report in Portrait mode and set its Width to 6.5 inches (8.5 page width minus one inch for margins on either side):
Copy CodeVisual Basic
' initialize Layout With c1r.Layout .Orientation = OrientationEnum.Portrait .Width = 6.5 * 1440 ' 8.5 - margins, in twips End With |
Copy CodeC#
// initialize Layout Layout l = c1r.Layout; l.Orientation = OrientationEnum.Portrait; l.Width = 6.5 * 1440; // 8.5 - margins, in twips |