Bartender使用C#修改标签异常
我是按照BartenderC#帮助文档中的Sample运行的程序,代码如下//DeclareaBarTenderapplicationvariableBarTender....
我是按照Bartender C#帮助文档中的Sample运行的程序,代码如下
//Declare a BarTender application variableBarTender.Application btApp;
//Declare a BarTender format variableBarTender.Format btFormat;
//Instantiate a BarTender application variablebtApp = new BarTender.ApplicationClass();
//Set the BarTender application visiblebtApp.Visible = true;
//Open a BarTender label formatbtFormat = btApp.Formats.Open("c:\\Format1.btw", false, "");
//Set the Name substring databtFormat.SetNamedSubStringValue("Name", "Jane Doe");
//Set the City substring databtFormat.SetNamedSubStringValue("City", "Seattle, WA");
//Print the label formatbtFormat.PrintOut(false, false);
//End the BarTender processbtApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);
在运行到SetNamedSubStringValue时异常,提示找不到Name名称的字串。请问设计条码的时候该如何制定字串的名字,才能在C#中被识别呢? 展开
//Declare a BarTender application variableBarTender.Application btApp;
//Declare a BarTender format variableBarTender.Format btFormat;
//Instantiate a BarTender application variablebtApp = new BarTender.ApplicationClass();
//Set the BarTender application visiblebtApp.Visible = true;
//Open a BarTender label formatbtFormat = btApp.Formats.Open("c:\\Format1.btw", false, "");
//Set the Name substring databtFormat.SetNamedSubStringValue("Name", "Jane Doe");
//Set the City substring databtFormat.SetNamedSubStringValue("City", "Seattle, WA");
//Print the label formatbtFormat.PrintOut(false, false);
//End the BarTender processbtApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);
在运行到SetNamedSubStringValue时异常,提示找不到Name名称的字串。请问设计条码的时候该如何制定字串的名字,才能在C#中被识别呢? 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询