S
sonation
Unregistered / Unconfirmed
GUEST, unregistred user!
我的程序如下:
procedure TForm1.Button1Click(Sender: TObject);
var x,y:integer;
begin
if printdialog1.Execute then
begin
printer.Orientation:=polandscape;
try
printer.begin
Doc;
printer.Canvas.Font:=label1.Font;
printer.Canvas.Rectangle(400,330,3738,2530);
printer.Canvas.TextOut(200,200,'55555');
printer.EndDoc;
except
end;
end;
end;
早先字体为10号我打印了一次,后来把字体改为初号我再打印一次,结果第二次打印的坐标发生了变化,我再把字体改为10号时打印出来的结果却无法与第一次一样(坐标与第二次相同).
procedure TForm1.Button1Click(Sender: TObject);
var x,y:integer;
begin
if printdialog1.Execute then
begin
printer.Orientation:=polandscape;
try
printer.begin
Doc;
printer.Canvas.Font:=label1.Font;
printer.Canvas.Rectangle(400,330,3738,2530);
printer.Canvas.TextOut(200,200,'55555');
printer.EndDoc;
except
end;
end;
end;
早先字体为10号我打印了一次,后来把字体改为初号我再打印一次,结果第二次打印的坐标发生了变化,我再把字体改为10号时打印出来的结果却无法与第一次一样(坐标与第二次相同).