嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 6 元微信扫码支付:6 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
条码打印软件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); //退出时是否保存标签