1.电脑装 BarTender软件
2.新建WINFORM测试项目
3.添加COM 组件(由安装软件目录SDK文件夹)
4. //添加COM 引用BarTender
实例化
BarTender.Application btapp;
BarTender.Format btformat;
5.打印方法
private void button1_Click(object sender, EventArgs e)
{
btapp = new BarTender.Application();
btformat = btapp.Formats.Open(@"C:\Users\Administrator\Desktop\lable1.btw", false, "");
btformat.PrintSetup.NumberSerializedLabels = 2; //设置打印份数
btformat.SetNamedSubStringValue("txtGoodCode1", "品号");//
btformat.SetNamedSubStringValue("txtGoodName