trichview.com

trichview.support




TRVPrint Page Size


Return to index


Author

Message

Joan Blundy

Posted: 06/03/2004 22:08:29


Hi Sergey,


I'm using TRVPrint.DrawPreview to paint a TRichViewEdit to a TCanvas.


I set the TRVPrint.Margin sizes etc. and call FormatPages(rvdoAll).


Now when I call TRVPrint.DrawPreview I pass the PageRect as the size of the

paper, in this case A3, adjusted to pixels etc. that I want the TRichViewEdit

sized to.


The issue is the DrawPreview clips the right-hand side of the content as

though the TRVPrint has not formatted the content in the TRVRichEdit correctly.


Am I missing something here or doing something wrong?


Code snippet below.


Thanks,


Joan


RVPrint1.LeftMarginMM   := 10;

RVPrint1.RightMarginMM  := 10;

RVPrint1.TopMarginMM    := 10;

RVPrint1.BottomMarginMM := 10;

RVPrint1.HeaderYMM      := iHeader;

RVPrint1.FooterYMM      := iFooter;

RVPrint1.FormatPages(rvdoALL);


RVPrint1.DrawPreview(i+1, ACanvas, rect(0, 0, AWidth, AHeight));


AWidth = 1123 and AHeight = 1587 (A3 with my PPI).





Powered by ABC Amber Outlook Express Converter