通过DELPHI实现对标签的批量打印
来源:互联网 发布:葛巾的知乎回答集锦 编辑:程序博客网 时间:2024/06/14 17:19
Var c : textfile;
a: integer;
begin
ASSIGNFILE(C,'PBarcode.txt');
for a:=1 to Strtoint(zs.text) do
begin
rewrite(c);
writeln(c,'Startprint,EPSON_A');
Writeln(c,'FMT,100,80,FALSE');
Writeln(c,'pit,-6');
writeln(c,'getbim,3,46,"1,'+SLOT.Text +','+ custpn.text +'",4,1.5');
writeln(c,'getbim,3,1,"(P)C P/N:'+ CustpN.text +'",4,1.5');
writeln(c,'BFL,3,4,0,29,4,"'+ Custpn.text +'",2,2');
writeln(c,'getbim,3,8,"(Q)QTY:'+ SQTY.text +'",4,1.5');
writeln(c,'BFL,3,11,0,29,4,"Q'+ SQTY.Text +'",2,2');
writeln(c,'getbim,3,14,"(M)Mfr P/N'+ CLSPN.text +'",4,1.5');
writeln(c,'BFL,3,18,0,29,4,"M'+ CLSPN.Text +'",2,2');
writeln(c,'getbim,3,22,"(D)Date Code:'+ SDATE. text +'",4,1.5');
writeln(c,'BFL,3,25,0,29,4,"D'+ SDATE.Text +'",2,2');
writeln(c,'getbim,3,29,"(L)Lot#:'+ SLOT.text +'",4,1.5');
writeln(c,'BFL,3,32,0,29,4,"L'+ SLOT.Text +'",2,2');
writeln(c,'getbim,3,36,"(S)PKG ID:'+ CUSTLOT. text +'",4,1.5');
writeln(c,'BFL,3,39,0,29,4,"S'+ CUSTLOT.Text +'",2,2');
writeln(c,'getBim,33,45,"RoHS",4,1.3');
writeln(c,'BOX,32,44,42,50,1,5,0');
writeln(c,'getBim,3,66,"xxxxx",3,1.3');
writeln(c,'getBim,3,69,"lllllll",3,1.3');
Writeln(c,'prt,1');
Writeln(c,'ID,50');
Writeln(c,'endprint');
closefile(c);
Winexec('PL.exe',sw_HIDE);
end;
end;
以上是BUTTION代码处的代码!
ASSIGNFILE procedure
Associates the name of an external file with a file variable.
Delphi syntax:
procedure AssignFile(var F; FileName: string);
StrToInt function
Converts a string that represents an integer (decimal or hex notation) to a number.
Delphi syntax:
function StrToInt(const S: string): Integer;
Rewrite procedure
Creates a new file and opens it.
Delphi syntax:
procedure Rewrite(var F: File [; Recsize: Word ] );
WriteLn procedure
Writes to a text file and adds an end-of-line marker.
Delphi syntax:
procedure WriteLn([ var F: Text; ] P1 [, P2, ...,Pn ] );
CloseFile procedure
Terminates the association between file variable and an external disk file.
Delphi syntax:
procedure CloseFile(var F);
- 通过DELPHI实现对标签的批量打印
- BarTender批量打印标签的教程
- 通过Spring JDBC+checkbox标签实现批量删除功能
- 在DELPHI中实现打印的预览
- Delphi中多标签页面的实现
- 通过Delphi 实现图象的缩放
- 批量打印二维码的软件---使用心得(领跑条码标签打印软件)
- Delphi实现对IIS的操作
- 金蝶KIS专业版实现'条码标签打印'功能对物料多个条码打印
- 利用python实现批量插入打印信息的方法
- delphi 实现虚拟打印, 远程集中打印
- 用 Delphi 实现报表的横向分组打印
- delphi中实现黑标单据的打印(原创)
- 基于Delphi的条码打印系统设计与实现
- 基于Delphi的条码打印系统设计与实现
- 用 Delphi 实现报表的横向分组打印
- 通过CSS让button标签实现A标签的效果
- 用codesoft打印标签时,批量打印的提速方法:CSdoc.printLabel(1)与CSdoc.Printdocument(1)的区别
- mysql命令集锦
- DOS命令大全--详解
- 分布式数据库2005 简单用法
- trace_enabled
- 高斯列主元消元法解方程Ax=b(A为方阵且为满秩)
- 通过DELPHI实现对标签的批量打印
- eclipse(myeclipse)自动联想快捷键(alt+/)不出效果解决办法
- 悼念MJ,世界流行音乐之王——黄健翔
- asp.net2.0学习历程 新手到中级程序员地飞跃
- 不知道有没有除了技术还有对产品感兴趣的?
- linux下解决打开rar文件
- net 中的智能(射频)卡框架
- CRectTracker(橡皮筋)类的使用
- 三 回调函数