Back to Devexpress

XtraReport.Landscape Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-e0ac3999.md

latest6.0 KB
Original Source

XtraReport.Landscape Property

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

Declaration

csharp
[DefaultValue(false)]
[SRCategory(ReportStringId.CatPageSettings)]
public bool Landscape { get; set; }
vb
<SRCategory(ReportStringId.CatPageSettings)>
<DefaultValue(False)>
Public Property Landscape As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the page orientation is landscape; otherwise, false.

|

Remarks

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.

reporting-winforms-label-report-in-code/CS/Reporting_how-to-create-a-label-report-at-runtime-t473792/LabelReportRuntime/CustomLabelReportBuilder.cs#L39

csharp
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

csharp
report = new XtraReport();
report.Landscape = true;
report.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.Letter;

winforms-create-a-custom-exporter-for-pivotgridcontrol-with-xtrareport/CS/Report_at_Runtime/PivotReportGenerator.cs#L18

csharp
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

csharp
report = new XtraReport();
report.Landscape = true;
report.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.Letter;

reporting-winforms-label-report-in-code/VB/Reporting_how-to-create-a-label-report-at-runtime-t473792/LabelReportRuntime/CustomLabelReportBuilder.vb#L39

vb
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

vb
report = New XtraReport()
report.Landscape = True
report.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.Letter

winforms-create-a-custom-exporter-for-pivotgridcontrol-with-xtrareport/VB/Report_at_Runtime/PivotReportGenerator.vb#L18

vb
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

vb
report = New XtraReport()
report.Landscape = True
report.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.Letter

reporting-winforms-use-subreport-to-add-a-chart/VB/Reporting-Use-Subreport-To-Add-A-Chart/Form1.vb#L141

vb
report.Landscape = True
report.DataSource = CreateDataSource()

See Also

XtraReport Class

XtraReport Members

DevExpress.XtraReports.UI Namespace