TRVReportHelper.DrawPageAt

<< Click to display table of contents >>

TRVReportHelper.DrawPageAt

Draws the specified page at the specified coordinates

procedure DrawPageAt(Left, Top: TRVCoord; APageNo: Integer;

  ACanvas: TCanvas; APreview: Boolean; AHeight: TRVCoord;

  RelativeToCurrentOrigin: Boolean = False);

Parameters:

APageNo index of the page to draw. The first page has index = 1.

ACanvas Canvas where to render the page. It's not necessary the same canvas as was used in Init, but must have the same resolution (and the same value of Font.PixelsPerInch)

The top left corner of the page is drawn at (Left,Top) coordinates. If RelativeToCurrentOrigin = False, the corner is exactly at (Left,Top). If RelativeToCurrentOrigin = True, the corner is shifted by (Left,Top) from the current origin (that was set by the previous call of GetWindowOrgEx).

 

APreview should be set to True when drawing on the screen canvas, to False when drawing on printer canvas.

AHeight height of this page; this value is used for drawing background.

 

This method uses SetWindowOrgEx to move origin to (Left,Top).

This page must be formatted before drawing, see FormatNextPage.

If value of TargetPixelsPerInch is positive, it is assigned to ACanvas.Font.PixelsPerInch.

 

See also:

DrawPage.