Printing in CLX
Posted: Thu Sep 23, 2004 2:11 pm
I am having a problem printing in CLX. This is just a real basic print. All I am doing is printing my chart to the top half of a page.
Printer.BeginDoc; { <-- start printer job }
try
arect.Left := 10;
arect.Right := Printer.PageWidth - 10;
arect.Top := 10;
arect.Bottom := (Printer.PageHeight - 10) div 2;
Chart1.PrintPartial(aRect);
finally
Printer.EndDoc; { <-- end job and print !! }
end;
What I get is a small picture at the top left corner of the screen (everything is jumbled together).
If I use this same code in VCL I get the picture correctly.
Any suggestions?
Thanks
Printer.BeginDoc; { <-- start printer job }
try
arect.Left := 10;
arect.Right := Printer.PageWidth - 10;
arect.Top := 10;
arect.Bottom := (Printer.PageHeight - 10) div 2;
Chart1.PrintPartial(aRect);
finally
Printer.EndDoc; { <-- end job and print !! }
end;
What I get is a small picture at the top left corner of the screen (everything is jumbled together).
If I use this same code in VCL I get the picture correctly.
Any suggestions?
Thanks