I am using a high quality jpeg for our letterheads.
This is loaded in the RichText.OnPaintWatermarkEvent using the following code
if wppInPaintDesktop in PaintMode then //Want to paint on the Canvas and not the Background (can't print if on BackGround)
PaintMode := PaintMode - [wppInPaintDeskTop];
if not Assigned(BackGroundImage) then //i.e. not already loaded
begin
if FileExists(WPRichText1.RTFVariables.Find('BackGround').Text) then
begin
BackgroundImage := TJpegImage.Create;
BackgroundImage.LoadFromFile(WPRichText1.RTFVariables.Find('BackGround').Text);
end;
end;
toCanvas.StretchDraw(PageRect,BackgroundImage);
This looks great on screen and the graphic is correctly positioned for the A4 page.
When I print the letter the graphic shrinks by about 10mm vertically and proportionally horizontally.
How can I get it to print the full size?
Thanks.
Rob.