Browse Source

添加打印张数

章政 8 years ago
parent
commit
3e7bea7655
1 changed files with 2 additions and 2 deletions
  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();
         }
     }