PtrDevice:ToPage Access/Assign
<< Click to Display Table of Contents >> PtrDevice:ToPage Access/Assign |
![]() ![]() ![]() |
Type | ShortInt |
Purpose
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.
Example
// To what page does the user want to print?
nLastPage := oPtrDevice:ToPage