RpReport:Support1ofN Access/Assign
<< Click to Display Table of Contents >> RpReport:Support1ofN Access/Assign |
![]() ![]() ![]() |
Type | Logic |
Purpose
To turn on/off support for the "Page 1 of N" display and the PgCount() runtime function.
If this value is set to true, ReportPro will calculate the total pages in the report when Print or PrintPreview is called before it begins printing/previewing the report. This effectively doubles reporting time since ReportPro must print the report twice, once in the background to calculate the page count and then again to perform the main printing task. In this case, the PgCount() runtime function will return the total pages in the report.
If this value is set to false, ReportPro will not count the pages in the report before it begins print/previewing. In this case, the PgCount() runtime function will return 0.
Example
// It slows down printing but we need to display
// the page count during the report…
oRpReport:Support1OfN := true