基本信息
源码名称:调用CodeSoft6打印条码
源码大小:0.04M
文件格式:.rar
开发语言:C#
更新时间:2016-09-23
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
调用CodeSoft6打印条码
lbl = new ApplicationClass(); string str = this.GetType().Assembly.Location; str_getPath = str.Substring(0, str.LastIndexOf('\\') 1) "LastPrint.lab"; if (!File.Exists(str_getPath)) { MessageBox.Show(str_getPath "文件不存在,無法打印!"); return; } lbl.Documents.Open(str_getPath, false); Document doc = lbl.ActiveDocument; doc.Variables.FormVariables.Item("VarPN").Value = str_pn; doc.Variables.FreeVariables.Item("Var4").Value = str_dir; doc.Variables.FormVariables.Item("VarPN_Dir").Value = str_dir; doc.Variables.FormVariables.Item("VarQty").Value = str_qty; doc.PrintDocument(1);