piMaxPageRanges - cPrintDialog¶
Type¶
Default¶
10
Arguments¶
None
Description¶
The value of this property is used for the number of page ranges that can be entered or selected by a user or via the report integration. The default is 10, which is typically sufficient, as building a report with many pages and printing up to 10 ranges of pages is considered a lot.
The ability to enter or use page ranges is controlled via the property piFlags. The PD_NOPAGENUMS of this property disables the Pages radio button and the associated edit controls of the print dialog. Additionally, it causes the Collate check box to appear in the dialog.
When this property is set to a value less than or equal to zero, it will be corrected to 10.
After selecting a printer from the Windows print dialog, piMaxPageRanges is updated with the information returned 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