Skip to main content

PrinterSettingsUsing.UseLandscape Property

Specifies whether or not the Landscape setting of the system’s default printer is used when printing a document.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

[TypeConverter(typeof(BooleanTypeConverter))]
[XtraSerializableProperty]
public bool UseLandscape { get; set; }

Property Value

Type Description
Boolean

true, to use the page orientation of the default printer’s settings; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to UseLandscape
XtraReport

Remarks

Use the UseLandscape property to make the report document use the Landscape setting defined by the default system printer (instead of the XtraReport.Landscape property of a report).

The default printer is the printer set as the default in the operating system. To override the default printer settings in your application, use the static properties and methods of the PageSettingsHelper class.

Note

If the UseLandscape property is set to true, the PrinterSettingsUsing.AnySettingUsed property will also return true.

See Also