K Kevin Unregistered / Unconfirmed GUEST, unregistred user! 1999-03-15 #1 用AssignPrn建立文件与打印端口的连接,然后对端口输出字符串, (已按pos机格式),但不打印。 哪为大虾有此经验,请救急!!!
H huizhang Unregistered / Unconfirmed GUEST, unregistred user! 1999-03-16 #2 To redirect a text file to a printer, call Rewrite after AssignPrn. procedure TForm1.Button1Click(Sender: TObject); var MyFile: TextFile; begin AssignPrn(MyFile); Rewrite(MyFile); Writeln(MyFile, 'Print this text'); System.CloseFile(MyFile); end;
To redirect a text file to a printer, call Rewrite after AssignPrn. procedure TForm1.Button1Click(Sender: TObject); var MyFile: TextFile; begin AssignPrn(MyFile); Rewrite(MyFile); Writeln(MyFile, 'Print this text'); System.CloseFile(MyFile); end;