老
老莫
Unregistered / Unconfirmed
GUEST, unregistred user!
我要套打一份单据,使用以下的代码:
showmessage('请放入收据联,按确认键开始打印');
try
printer.begin
Doc;
printer.Canvas.Font.Name:='宋体';
printer.Canvas.Font.Size:=11;
printer.canvas.TextOut(334,110,'jdbh');
printer.canvas.TextOut(618,110,'sgz');
printer.canvas.TextOut(950,110,'bh');
printer.canvas.TextOut(189,170,'xm');
printer.canvas.TextOut(806,170,'zds');
printer.canvas.TextOut(189,211,'zz');
printer.canvas.TextOut(756,211,'dw');
printer.canvas.TextOut(1088,278,'ho');
printer.canvas.TextOut(1088,332,'wo');
printer.canvas.TextOut(200,415,'trans(czf)');
printer.canvas.TextOut(920,415,'temp');
printer.canvas.TextOut(344,460,'fh');
printer.canvas.TextOut(586,460,'czy');
printer.canvas.TextOut(869,460,'rq');
finally
printer.enddoc;
end;
单据高度大概8公分
现在的问题是第一张打完后,打印作业没有结束,等第二张纸进去后先走纸5
公分左右。结果第二张单据就打偏了。
如何在最后一个textout完成后马上退纸呢?
我用的是NT、OKI5330打印机
showmessage('请放入收据联,按确认键开始打印');
try
printer.begin
Doc;
printer.Canvas.Font.Name:='宋体';
printer.Canvas.Font.Size:=11;
printer.canvas.TextOut(334,110,'jdbh');
printer.canvas.TextOut(618,110,'sgz');
printer.canvas.TextOut(950,110,'bh');
printer.canvas.TextOut(189,170,'xm');
printer.canvas.TextOut(806,170,'zds');
printer.canvas.TextOut(189,211,'zz');
printer.canvas.TextOut(756,211,'dw');
printer.canvas.TextOut(1088,278,'ho');
printer.canvas.TextOut(1088,332,'wo');
printer.canvas.TextOut(200,415,'trans(czf)');
printer.canvas.TextOut(920,415,'temp');
printer.canvas.TextOut(344,460,'fh');
printer.canvas.TextOut(586,460,'czy');
printer.canvas.TextOut(869,460,'rq');
finally
printer.enddoc;
end;
单据高度大概8公分
现在的问题是第一张打完后,打印作业没有结束,等第二张纸进去后先走纸5
公分左右。结果第二张单据就打偏了。
如何在最后一个textout完成后马上退纸呢?
我用的是NT、OKI5330打印机