代码如下:
BarTender.Application btEngine = new BarTender.Application();
BarTender.Format btFormat = btEngine.Formats.Open(cTempletFile);
btFormat.PrintSetup.IdenticalCopiesOfLabel = 1;
btFormat.PrintSetup.NumberSerializedLabels = 1;
btFormat.SetNamedSubStringValue("ItemName", ItemNewName);
btFormat.SetNamedSubStringValue("Qrcode", ItemNewQrBarCode);
//Messages oRet;
//BtPrintResult result = btFormat.Print("", false, -1, out oRet);
btFormat.PrintOut(false, false);
btEngine.Quit(BtSaveOptions.btDoNotSaveChanges);
因为二维码比较复杂, 所以没有设置序列化打印, 采用的是程序赋值的方式.
循环调用上面的代码时,打印机会在打印好前一张之后,才会重新接受下一个打印指令,两张之间会有约 0.5 秒的等待, 请问该如何处理?