///
/// 调用BarTender打印,模板的变量为:barcode0,barcode1,barcode2.......,barcode7 (内循环打印集合列表)
///
/// 打印机名称,必填
/// 标签模板ID,必填
/// 打印参数列表,必填
/// 单据ID
/// 每行打印的列数
public static bool BarcodePrint(string pPrinter, string pTagsTemplateId,
List pPrintParameterList, string checkBillId, int cellNum)
{
BarTender.ApplicationClass btApp = null;
BarTender.Format btFormat = null;
bool isPrintOut = false;
try
{
if (string.IsNullOrEmpty(pPrinter))
{
MessageBox.Show(@"请检查打印驱动程序设置!");
return isPrintOut;
}
if (string.IsNullOrEmpty(pTagsTemplateId))
{
MessageBox.Show(@"请选择打印的模板!");
return isPrintOut;
}
var clsTagsTemplateObj = TemplateBusiness.