给你一段代码 看看啊
!不晓得那位兄弟 有进销存 方面的文档资料啊
也给兄弟一份
Port: TextFile;
printStr,outfile : string;
outfile:='LPT1';
AssignFile(Port, OutFile);
REWRITE(Port);
WRITELN(Port,chr(27)+'@');
Writeln(Port,Chr(28)+'!'+Chr(8));
Writeln(Port, Title);
Writeln(Port,Chr(28)+'!'+Chr(0));
WRITELN(Port,'');
Writeln(Port,'',auto,'±àÂë:':6,windowno:3,'²¿ÃÅ:':6,winname:4);
Writeln(Port,'---------------------------------------');
Writeln(Port,Chr(28)+'!'+Chr(4));
writeln(Port,'ÏÖ½ð¶î:':0,cost:6,'Ôª');
Writeln(Port,Chr(28)+'!'+Chr(4));
writeln(Port,'´ú½ðȯ:':0,ticket:6,'Ôª');
Writeln(Port,Chr(28)+'!'+Chr(0));
writeln(Port,'¸¶¿îÃ÷ϸ:':0,' ',rema);
Writeln(Port,'---------------------------------------');
Writeln(Port,'´ËƱµ±ÈÕÓÐЧ£¡»¶Ó­Ôٴλݹˣ¡');
Writeln(Port,'ÈÕÆÚ:',Stime);
Writeln(Port,'ÖØ´òʱ¼ä:',DateTimeToStr(Now));
writeln(Port,char(10));
writeln(Port,'');
writeln(Port,'');
writeln(Port,'');
writeln(Port,char(27)+'i');
// ÇÐÖ½
CloseFile(Port);
end;