PtrDevice:Copies Access/Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:Copies Access/Assign

Previous pageReturn to chapter overviewNext page
Type        Word

Purpose

To get/set the DEVMODE.dmCOPIES member.

 

The access returns the DEVMODE structure dmCopies member.  When queried after the Print Dialog Window has been shown, it indicates how many copies the user wants to print.

 

The assign sets the DEVMODE.dmCopies member.  When set before the Print Dialog Window is displayed, it initialized the Copies edit.

Example

// How many copies does the user want?

oPtrDevice:ShowPrintDlg()

nNumberOfCopies := oPtrDevice:Copies

 

Note:        The printing of multiple copies is automatically handled by the PtrDevice class if the CollatedCopies option is set; otherwise, it is handled by the printer driver.