rvico TRichView Reference | TRVPrint

TRVPrint.FormatPages

Top  Previous  Next

Prepare document to formatting

function FormatPages(PrintOptions:TRVDisplayOptions): Integer;

Please use rvdoAll constant for PrintOptions parameter:

FormatPages(rvdoAll);

Document must be assigned to this TRVPrint object using AssignSource method before calling this method.

This method allocates some temporal memory what is used when drawing preview and printing. When you finish, call Clear to release this memory.

Note for C++Builder users:

C++Builder (at least version 5) incorrectly translates rvdoAll constant.

The recommended call is

RVPrint->FormatPages(TRVDisplayOptions())

(i.e. initialization with the empty set; this parameter is for compatibility, and it is not used any more)

See also methods:

Clear.

See also events:

OnFormatting.


TRichView © trichview.com