BarTender.Format btFormat = null;
                BarTender.Application btapp = new BarTender.Application();
                btFormat = btapp.Formats.Open(@"D:\UPS_Domestic.btw", false, "");
                //btFormat = btapp.Formats.Open(@"D:\UPS_Domestic.btw", false, "");50X30X2.btw
                btFormat.IdenticalCopiesOfLabel = 1;
                btFormat.NumberSerializedLabels = 8;
                btapp.Visible = true;
                btFormat.SetNamedSubStringValue("Name", "测试 V1.0");
                btFormat.SetNamedSubStringValue("Code", "ZB1000 12345678");

                btFormat.PrintOut(true, true);
                btFormat.Close(BtSaveOptions.btDoNotSaveChanges);
                btapp.Quit(BtSaveOptions.btDoNotSaveChanges);红色字体部分报错 [System.Runtime.InteropServices.COMException] = {"已命名子字串 Name 未在已命名子字串列表中找到。"}求解决办法