shim 8 سال پیش
والد
کامیت
fc66f474aa
1فایلهای تغییر یافته به همراه0 افزوده شده و 8 حذف شده
  1. 0 8
      UAS-MES/FunctionCode/Make/Make_CustomLabelPrint.cs

+ 0 - 8
UAS-MES/FunctionCode/Make/Make_CustomLabelPrint.cs

@@ -221,10 +221,6 @@ namespace UAS_MES.Make
                 OperateResult.AppendText(">>请输入自定义模板" + paramsInfo.Rows[0]["lp_name"].ToString() + "的值\n", Color.Green);
                 //打开模板路径
                 //doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.SelectedText.Split(':')[1]);
-                if (doc != null)
-                {
-                    doc.Close();
-                }
                 //doc = lbl.Documents.Open(ftpOperater.DownLoadTo + listA.Rows[PrintLabel.SelectedIndex]["pl_labelname"].ToString());
                 currentIndex = 1;
                 //聚焦输入框
@@ -248,10 +244,6 @@ namespace UAS_MES.Make
 
         private void Make_CustomLabelPrint_FormClosing(object sender, FormClosingEventArgs e)
         {
-            if (doc!=null)
-            {
-                doc.Close();
-            }
             BaseUtil.ClosePrint(lbl);
         }