piMaxPage - cPrintDialog¶
Type¶
Default¶
999999
Arguments¶
None
Description¶
The value of this property is passed to the Windows printer selection dialog as the highest possible page number.
While it is possible for the developer to set this value, it is set in several operations:
- PrintReport: Retrieves the current page count via ReportPageCount and sets
piMaxPageof the phoPrintDialog. After setting the value, theInitPageRangesmethod is called to create a page range. - CopyPageRangeInfo: This private routine sets
piMaxPageto the highest found value in the array of page ranges. PrintDialog: Sets the value based on the returned information from the printer selection dialog.
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
Procedure OnInitializeReport
Handle hoPrintDialog
Forward Send OnInitializeReport
Get phoPrintDialog to hoPrintDialog
Set piMaxPageRanges of hoPrintDialog to 5
End_Procedure
End_Object