From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Boolean )

aPrinterSetup.Landscape = newBooleanValue
BooleanValue = aPrinterSetup.Landscape

New in 2007r4

Supported for all project types and targets.

Gets and sets the landscape state of the PrinterSetup object. It is True for the landscape orientation; False otherwise. Currently supported on Windows and macOS only.


This example sets the Landscape property.

Var settings As String
Var p As New PrinterSetup
If p.PageSetupDialog Then
settings = p.SetupString
End If
p.MaximumHorizontalResolution = 300
p.MaximumVerticalResolution = 300
p.Landscape = True