浏览代码

添加打印张数

章政 8 年之前
父节点
当前提交
3e7bea7655
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      UAS-MES/PublicMethod/Print.cs

+ 2 - 2
UAS-MES/PublicMethod/Print.cs

@@ -19,7 +19,7 @@ namespace UAS_MES.PublicMethod
         /// </summary>
         /// <param name="Url"></param>
         /// <param name="LabelCode"></param>
-        public static void CodeSoft(ApplicationClass lbl, string LabelName, string LabelCode, string PrinterName, string SnCode)
+        public static void CodeSoft(ApplicationClass lbl, string LabelName, string LabelCode, string PrinterName, string SnCode,int PrintNum)
         {
             //打开模板路径
             doc = lbl.Documents.Open(ftpOperater.DownLoadTo + LabelName);
@@ -41,7 +41,7 @@ namespace UAS_MES.PublicMethod
             //保存本次赋值进行打印
             doc.Save();
             doc.Printer.SwitchTo(PrinterName);
-            doc.PrintDocument();
+            doc.PrintDocument(PrintNum);
             doc.Close();
         }
     }