TCustomRVPrint.GetFirstItemOnPage

<< Click to display table of contents >>

TCustomRVPrint.GetFirstItemOnPage

Returns index of the first item on the page

procedure GetFirstItemOnPage(PageNo: Integer; out ItemNo, OffsetInItem: Integer);

Input parameter:

PageNo number of page (from 1).

Output parameters:

ItemNo index of the first item on the page (from 0)

OffsetInItem:

for non-text items: 0;

for text items: index of the first character on the page (from 1)

 

Note: this information is not enough when using tables. Tables can be printed on several pages, and using this information you cannot determine which part of table starts the page.

See also:

GetPageNo.

See also properties:

PagesCount.