S
soft1117
Unregistered / Unconfirmed
GUEST, unregistred user!
程序如下:
procedure Tformqre.Button1Click(Sender: TObject);
var
i, j : integer;
x, y : integer;
begin
x := 360;
y := 300;
if Pntset1.Execute then
begin
printer.begin
Doc;
if printer.printers.Count = 0 then
begin
ShowMessage('请首先安装打印机');
Printer.Abort;
end;
for i := 0 to 144do
begin
if (i mod 3 = 0) and (i <> 0) and (i <> 144) then
printer.Canvas.Pen.Style := psdot;
printer.Canvas.MoveTo(y, i * 15 + x);
printer.Canvas.LineTo(1540 + y, i * 15 + x);
if (i mod 3 = 0) and (i <> 0) and (i <> 144) then
printer.Canvas.Pen.Style := pssolid;
end;
with printer.Canvasdo
begin
Font.Name := '宋体';
Font.Size := 10;
Font.Style := [];
end;
printer.Canvas.TextOut(y-100, x-100, '这是测试行!');
for j := 0 to 11do
begin
printer.Canvas.MoveTo(j * 140 + y,x );
printer.Canvas.LineTo(j * 140 + y,2160 + x );
end;
printer.EndDoc;
end;
end;
问题:打印后只出来一半多的线条就停止了,用的A3纸,还有出来的文字如何能转90度呢?谢谢!
procedure Tformqre.Button1Click(Sender: TObject);
var
i, j : integer;
x, y : integer;
begin
x := 360;
y := 300;
if Pntset1.Execute then
begin
printer.begin
Doc;
if printer.printers.Count = 0 then
begin
ShowMessage('请首先安装打印机');
Printer.Abort;
end;
for i := 0 to 144do
begin
if (i mod 3 = 0) and (i <> 0) and (i <> 144) then
printer.Canvas.Pen.Style := psdot;
printer.Canvas.MoveTo(y, i * 15 + x);
printer.Canvas.LineTo(1540 + y, i * 15 + x);
if (i mod 3 = 0) and (i <> 0) and (i <> 144) then
printer.Canvas.Pen.Style := pssolid;
end;
with printer.Canvasdo
begin
Font.Name := '宋体';
Font.Size := 10;
Font.Style := [];
end;
printer.Canvas.TextOut(y-100, x-100, '这是测试行!');
for j := 0 to 11do
begin
printer.Canvas.MoveTo(j * 140 + y,x );
printer.Canvas.LineTo(j * 140 + y,2160 + x );
end;
printer.EndDoc;
end;
end;
问题:打印后只出来一半多的线条就停止了,用的A3纸,还有出来的文字如何能转90度呢?谢谢!