StringGrid.Paintto size prob
Posted on 2005-04-21
Hello, I am trying to do something which I though would be very simple but I can't get it to work..
I have a stringgrid about 500w by 150h, 7 rows and 3 cols but I don't think this is relevant. I am trying to send it to the printer using the following, Data being the TStringGrid...
procedure TForm1.Button1Click(Sender: TObject);
with Printer do
Printer.PageWidth := 400;
Data.PaintTo(Handle, 10, 10);
My problem is that this prints it very very small in the top left corner, the scale is all wrong, is this something to do with the DPI setting of the printer? how do I change the output size? is this done with TPrinter or the TStringGrid?
Thanks for any help!