TRVPrint.DrawPage, DrawPageAt

<< Click to display table of contents >>

TRVPrint.DrawPage, DrawPageAt

Draws the APageNo-th page on ACanvas.

procedure DrawPage(APageNo: Integer; ACanvas: TCanvas;

  APreview: Boolean);
procedure DrawPageAt(Left, Top, APageNo: Integer; ACanvas: TCanvas; 

  APreview: Boolean);

(introduced in version 17)

DrawPage draws the page at (0, 0) coordinates.

DrawPageAt draws the page at (Left, Top) coordinates.

APageNo must be in range from 1 to PagesCount.

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

See also methods:

DrawPreview.

See also properties:

PreviewCorrection;

PagesCount.

See also events:

OnPrintComponent;

OnPagePrepaint;

OnPagePostpaint.