调用codeSoft的模板,实现批量连续打印。
http://files.cnblogs.com/w519/codesoft%E5%8F%8A%E5%85%B6%E4%BB%96.rar
Code:
制作标签1.lab.
添加两个变量var0,var1。
using LabelManager2;
string strFile = System.Windows.Forms.Application.StartupPath.ToString() + "\\1.lab";
lbl = new LabelManager2.ApplicationClass();
lbl.Documents.Open(strFile, false);//调用设好的lbl标签
doc = lbl.ActiveDocument;
//获得所有打印机名称
Strings vars = lbl.PrinterSystem().Printers(enumKindOfPrinters.lppxAllPrinters);
//获得需要的打印机名称 打印机固定可直接给名称值
// string printName = vars.Item(2);
PrintDocument prtdoc &#