PtrDevice:Landscape Access/Assign
<< Click to Display Table of Contents >> PtrDevice:Landscape Access/Assign |
![]() ![]() ![]() |
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