Skip to main content
A newer version of this page is available. .

ReportSettingsBase.Landscape Property

Gets or sets whether report page orientation is landscape.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v19.1.dll

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Core

Declaration

[DefaultValue(false)]
public bool Landscape { get; set; }

Property Value

Type Default Description
Boolean **false**

true if report page orientation is landscape; otherwise false.

Remarks

If the Landscape property’s value is false, then the page orientation is Portrait.

Note

When the Landscape property value changes, the PageWidth and PageHeight properties swap their values.

The code sample below illustrates how to create an End-User Designer instance and enable the Landscape property default value for its reports.

using DevExpress.XtraReports.UI;
using DevExpress.XtraReports.UserDesigner;
// ...
XRDesignForm form = new XRDesignForm();
XRDesignMdiController reportDesigner = form.DesignMdiController;
reportDesigner.DefaultReportSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;
reportDesigner.DefaultReportSettings.Landscape = true;
reportDesigner.DefaultReportSettings.RollPaper = false;
reportDesigner.DefaultReportSettings.ReportUnit = ReportUnit.HundredthsOfAnInch;
reportDesigner.DefaultReportSettings.Margins = new System.Drawing.Printing.Margins(50, 50, 100, 100);
form.ShowDialog();
See Also