PtrDevice:ToPage Access/Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:ToPage Access/Assign

Previous pageReturn to chapter overviewNext page
Type        ShortInt


The access returns the PRINTDLG.nTOPAGE member.  When queried after the Print Dialog Window is shown, it indicates the last page the user wants to print.


The assign sets the PRINTDLG.nTOPAGE member.  When set before the Print Window is presented, it sets the default Print To Page edit value.


// To what page does the user want to print?

nLastPage := oPtrDevice:ToPage