|Top Previous Next|
Allows to draw on a page (paper and print preview)
TRVPagePrepaintEvent = procedure (Sender: TRVPrint;
PageNo: Integer; Canvas: TCanvas; Preview: Boolean;
PageRect, PrintAreaRect: TRect) of object;
property OnPagePrepaint: TRVPagePrepaintEvent;
(introduced in version 1.3)
Sequence of actions:
1.drawing background (if not transparent);
PageNo – page number (starting from 1);
Canvas – canvas where to draw;
Preview – "is this a preview drawing?"
PageRect – rectangle around the full page, pixels.
PrintAreaRect – rectangle around the document on the page (PageRect minus marginsMM), pixels.
▪the picture in the TRVPrint main topic;
▪example how to print pictures in this event: https://www.trichview.com/forums/viewtopic.php?t=58.
TRichView © trichview.com