xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-e0ac3999.md
Gets or sets a value indicating whether the page orientation is landscape.
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[DefaultValue(false)]
[SRCategory(ReportStringId.CatPageSettings)]
public bool Landscape { get; set; }
<SRCategory(ReportStringId.CatPageSettings)>
<DefaultValue(False)>
Public Property Landscape As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the page orientation is landscape; otherwise, false.
|
If the Landscape property’s value is false , then the page orientation is Portrait.
When the Landscape property value changes, XtraReport.PageWidthF and XtraReport.PageHeightF property values are swapped.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Landscape property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
report.PaperKind = paperKindList.PaperKind;
report.Landscape = paperKindList.Landscape;
report.RollPaper = false;
asp-net-mvc-grid-create-report-based-on-grid-layout/CS/E4755/Models/ReportHelperMVC.cs#L30
report = new XtraReport();
report.Landscape = true;
report.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.Letter;
XtraReport rep = new XtraReport();
rep.Landscape = true;
rep.DataSource = FillDataset(pivot);
asp-net-web-forms-grid-create-report-based-on-grid-layout/CS/WebApplication1/ReportHelper.cs#L36
report = new XtraReport();
report.Landscape = true;
report.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.Letter;
report.PaperKind = paperKindList.PaperKind
report.Landscape = paperKindList.Landscape
report.RollPaper = False
asp-net-mvc-grid-create-report-based-on-grid-layout/VB/E4755/Models/ReportHelperMVC.vb#L31
report = New XtraReport()
report.Landscape = True
report.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.Letter
Dim rep As DevExpress.XtraReports.UI.XtraReport = New DevExpress.XtraReports.UI.XtraReport()
rep.Landscape = True
rep.DataSource = PivotReportGenerator.FillDataset(pivot)
asp-net-web-forms-grid-create-report-based-on-grid-layout/VB/WebApplication1/ReportHelper.vb#L36
report = New XtraReport()
report.Landscape = True
report.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.Letter
report.Landscape = True
report.DataSource = CreateDataSource()
See Also