PtrDevice:Duplex Access/Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:Duplex Access/Assign

Previous pageReturn to chapter overviewNext page
Type        ShortInt


To get/set the DEVMODE.dmDUPLEX member.  The access returns the duplex mode of the printer.


The assign sets the DEVMODE.dmDUPLEX structure member thus specifying duplex printing.  Valid options are DMDUP_SIMPLEX, DMDUP_HORIZONTAL, and DMDUP_VERTICAL


// Does the user want duplex printing?

if oPtrDevice:Duplex