http://www.delphibbs.com/delphibbs/dispq.asp?lid=2231196
标题: 如何控制打印机进退纸? (50分)
-----------------转自网络
进纸:
var
MyFile: TextFile;
strTemp : WideString;
begin
Assignfile(MyFile,'lpt1');
Rewrite(MyFile);
strTemp := chr($b)+chr(27)+'J'+chr(140);
writeln(MyFile, strTemp);
System.CloseFile(MyFile);
end;
退纸:
var
MyFile: TextFile;
strTemp : WideString;
begin
Assignfile(MyFile,'lpt1');
Rewrite(MyFile);
strTemp := chr($b)+chr(27)+'K'+chr(40);
writeln(MyFile, strTemp);
System.CloseFile(MyFile);
end;
这个有用不