PtrDevice:Landscape Access/Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:Landscape Access/Assign

Previous pageReturn to chapter overviewNext page

Type                Logic

Purpose

The access returns TRUE if the printer is set to print landscape.

 

The assign sets the DEVMODE.dmORIENTATION structure member.  If TRUE, the printer is set for landscape printing, otherwise, it is set for portrait.

Example

// Is the printer set to landscape mode?

oPtrDevice:ShowPrintDlg()

if oPtrDevice:Landscape

         ...

endif