TCustomRVPrint.LastPageNo (read-only)

<< Click to display table of contents >>

TCustomRVPrint.LastPageNo (read-only)

Returns the index of the last page that will be printed, from 1.

property LastPageNo: Integer;

(Introduced in version 13)

This property takes the properties MinPrintedItemNo and MaxPrintedItemNo into account. By default, when these properties define the range including the whole document, LastPageNo returns PagesCount. If MaxPrintedItemNo is inside the items range (0..ItemCount-1), this property returns the index of the page containing the MaxPrintedItemNo-th item (see GetPageNo).