TRVPrint.MakeScaledPreview

<< Click to display table of contents >>

TRVPrint.MakeScaledPreview

Draws print preview of the phNo-th page to bitmap bmp.

procedure MakeScaledPreview(pgNo: Integer; bmp: TBitmap);

There is more convenient way to display print preview: TRVPrintPreview component.

pgNo must be in range from 1 to PagesCount.

This method does not change size of bitmap, and draws the page in full bitmap size. To maintain correct proportions, you can use Preview100PercentWidth and Preview100PercentHeight properties.

You need to assign source document for printing (AssignSource method) and format pages (FormatPages method) before calling this method.

See also methods:

MakePreview;

DrawPreview.

See also properties:

PreviewCorrection;

PagesCount.

See also events:

OnPrintComponent;

OnPagePrepaint;

OnPagePostpaint.