PtrDevice:MaxPage Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:MaxPage Assign

Previous pageReturn to chapter overviewNext page
Type        Word


This assign sets the PRINTDLG structure nMAXPAGE member value.  When set before the Print Dialog Window is shown, it determines the maximum page number the user can enter in the Print To Page edit.


// Do not let the user print beyond page 12

oPtrDevice:MaxPage := 12