The
NbPrintedRec property is used to determine the number of records already printed.
Remark: The NbPrintedRec property ignores the blocks repeated until the page footer.
// If more than 5 records have been printed
IF RPT_CustomerReport.NbPrintedRec > 5 THEN
// The print of "RPT_CustomerReport" is stopped
iEndReport()
END
Syntax
<Result> = <Report used>.NbPrintedRec
<Result>: Integer
Number of records already printed.
<Report used>: Report name
Name of the report to be used.
Remarks
Number of records
- The NbRecRead property returns the number of records selected by the source of the report (query, view, memory area or Table control).
- The NbPrintedRec property returns the number of records selected both by the source of the report AND by the filter code (if any).
The NbRecRead and NbPrintedRec properties return the same value for a report based on a file: the number of records in the file AND selected by the filter code (if any). - The TotalNbRec property is used to determine and change the number of records to print. The number of records to print will be between 1 and NbPrintedRec.
Limit
The NbPrintedRec property cannot be used on reports without a data source.