基本信息
源码名称:bartender二次开发
源码大小:1.07M
文件格式:.rar
开发语言:C#
更新时间:2020-12-02
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 6 元 
   源码介绍

条码打印软件bartender二次开发,先做入库 然后调用查询 再打印

,条码软件开发  打印程序    查询防重,



 btFormat = btApp.Formats.Open(System.Windows.Forms.Application.StartupPath @"\1.btw", false, "");
                btFormat.PrintSetup.IdenticalCopiesOfLabel = 1;  //设置同序列打印的份数
                btFormat.PrintSetup.NumberSerializedLabels = a;  //设置需要打印的序列数
                btFormat.SetNamedSubStringValue("PN1", this.txtItem1.Text); //向bartender模板传递变量
                btFormat.SetNamedSubStringValue("PN1", this.txtItem2.Text);
                btFormat.SetNamedSubStringValue("SN1", this.txtName1.Text); //向bartender模板传递变量
                btFormat.SetNamedSubStringValue("SN2", this.txtName2.Text);
                btFormat.SetNamedSubStringValue("KW1", this.txtDesc1.Text); //向bartender模板传递变量
                btFormat.SetNamedSubStringValue("KW2", this.txtDesc2.Text);
                btFormat.SetNamedSubStringValue("QT1", this.txtPici1.Text); //向bartender模板传递变量
                btFormat.SetNamedSubStringValue("QT2", this.txtPici2.Text);
                btFormat.SetNamedSubStringValue("Ht1", this.txtPici3.Text);
                btFormat.SetNamedSubStringValue("Ht1", this.txtPici4.Text);

                btFormat.PrintOut(true, false); //第二个false设置打印时是否跳出打印属性
                btFormat.Close(BarTender.BtSaveOptions.btSaveChanges); //退出时是否保存标签