TeePeviewPanel Print
Posted: Mon Dec 11, 2006 11:49 am
I am revisiting printing the chats I have. Mainly because I have had such a had time getting some small tweaks just right.
When I use the TeePreviewPanel.Print Method, the printout is great quality. I print out to a 11x17 sheet of paper which causes my charts to be bigger when printed. The code below works great however on larger size paper my charts are huge, while on 8.5x11 they are perfect size although not all the charts will fit onto 1 sheet.
Code:
Like I said the print is beautiful. I currently do a DrawToMetCanvas and its ok but nothing like this procedure as far as print quality. If I could get the chart sizes to scale the paper correctly this would be great.
Any help appreciated.
Tom
When I use the TeePreviewPanel.Print Method, the printout is great quality. I print out to a 11x17 sheet of paper which causes my charts to be bigger when printed. The code below works great however on larger size paper my charts are huge, while on 8.5x11 they are perfect size although not all the charts will fit onto 1 sheet.
Code:
Code: Select all
topc := 10;
botc := 70;
for i := 0 to charts - 1 do
begin
TeePreviewPanel1.Panels.Add(mychart[i]);
//mychart[i].Height:=Round(1.0*Printer.PageHeight*mychart[i].Width/Printer.PageWidth);
mychart[i].PrintProportional := False;
mychart[i].PrintMargins:=Rect(1,topc,1,botc);
topc := topc + 20;
botc := botc - 20;
end;
TeePreviewPanel1.Orientation := ppoPortrait;
TeePreviewPanel1.Repaint;
TeePreviewPanel1.Print;
Any help appreciated.
Tom