TRVPrint.MakePreview

<< Click to display table of contents >>

TRVPrint.MakePreview

Draws a preview of the pgNo-th page to bitmap bmp.

procedure MakePreview(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 changes size of bitmap to (Preview100PercentWidth x Preview100PercentHeight) and draws print preview of the pgNo-th page into it.

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

See also methods:

MakeScaledPreview;

DrawPreview.

See also properties:

PreviewCorrection;

PagesCount.

See also events:

OnPrintComponent;

OnPagePrepaint;

OnPagePostpaint.