摘要:
procedure TForm1.Button1Click(Sender: TObject);varRPrinter:TextFile;i:integer;begin{设置打印机}Assignfile(RPrinter,'lpt1');{准备写文件}Rewrite(RPrinter);{打印}for i := 0 to memo1.lines.Count - 1 doWriteln(RPrinter,memo1.lines[i]);{向后倒纸}Writeln(RPrinter,chr($b)+chr(27)+'K'+chr(40));{向前进纸}Writeln( 阅读全文
posted @ 2010-05-19 07:49
delphi中间件
阅读(365)
评论(0)
推荐(0)
摘要:
Last4Str:string; //全局变量function NotRepertStr:string;var n,w,i:integer; s:string;begins:='';if Last4Str='' then Last4Str:='0000';n:=strtoint(Last4Str)+1;if n>9999 then n:=0;w:=Length(inttostr(n)); for i:=1 to 4-w do s:=s+'0';Last4Str:=s+inttostr(n);result:=FormatDat 阅读全文
posted @ 2010-05-19 07:47
delphi中间件
阅读(497)
评论(0)
推荐(0)
摘要:
1、控制POS机的客户显示屏procedure TFrmMain.ShowMoney(Money_Port: String;Money_String:String);//Moneey_Port 顾显接口Com1 or Com2 Money_String 顾显显示的内容var PrnFileName:TextFile;begin Assignfile(PrnFileName,Money_Port); printer.Canvas.Font.Name:='宋体'; printer.Canvas.Font.Size:=8; printer.Canvas.Font.Charset:=G 阅读全文
posted @ 2010-05-19 07:45
delphi中间件
阅读(479)
评论(0)
推荐(0)

浙公网安备 33010602011771号