RBReportDocument.PageCount

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aRBReportDocument.PageCount

Supported for all project types and targets.

Returns the number of pages rendered.