TRVPrint.FormatPages

<< Click to display table of contents >>

TRVPrint.FormatPages

Prepares a document for printing (or drawing)

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:

Older versions of C++Builder translates rvdoAll constant incorrectly.

The recommended call is

RVPrint->FormatPages(TRVDisplayOptions())

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

See also methods:

Clear.

See also events:

OnFormatting.