110,499
社区成员
发帖
与我相关
我的任务
分享
try
{
BarTender.Application btApp;
BarTender.Format btFormat;
btApp = new BarTender.ApplicationClass();
btApp.Visible = false;
btFormat = btApp.Formats.Open(Path, false, "");
btFormat.SetNamedSubStringValue(SubStringName, barcode);
btFormat.PrintOut(false, false);
btFormat.Close(BarTender.BtSaveOptions.btSaveChanges);
}
catch (Exception ex)
{
throw ex;
}
//1.打印条码
BarTenderHelper barTender = new BarTenderHelper(path);
barTender.PrintBarcode(barcode);
//2.保存条码到DB
dao.SaveBarcode(barcode, LoginInfo.LoginNO);
//3.在gridview中新增一行
GridViewNewRow(barcode);
txtBarcode.Text = "";