TSRichViewEdit.MinPrintedItemNo, MinPrintedOffsInItem

<< Click to display table of contents >>

TSRichViewEdit.MinPrintedItemNo, MinPrintedOffsInItem

The properties define the starting position to print.

property MinPrintedItemNo: Integer;

property MinPrintedOffsInItem: Integer;

The component prints items from (MinPrintedItemNo, MinPrintedOffsInItem) to (MaxPrintedItemNo, MaxPrintedOffsInItem). By default, this range includes all items.

Items outside of this range  are not printed (but they still occupy their spaces). The pages that do not contain items in this range are skipped (the component prints pages from FirstPageNo to LastPageNo).

MinPrintedItemNo is the index of item in RichViewEdit, the first item to print.

MinPrintedOffsInItem is the offset of the first position in the MinPrintedItemNo-th item to print. If this is a text item, this property allows printing a part of it. The position is defined with up-to-line, not up-to-character precision (i.e., if the item is displayed as several lines, and the specified position is in the middle of a line, the part of item on this line is printed).

These properties allow implementing an incremental printing: when the next portion of the document is ready, it can be printed below the previously printed fragment. This feature can be used for printing accounting journals, logs, etc.

Default value: