Browse Source

捕获打印初始化异常

Hcsy 8 years ago
parent
commit
1fa3ceb1e4
1 changed files with 7 additions and 1 deletions
  1. 7 1
      UAS-MES/FunctionCode/Make/Make_BigBoxWeight.cs

+ 7 - 1
UAS-MES/FunctionCode/Make/Make_BigBoxWeight.cs

@@ -74,7 +74,13 @@ namespace UAS_MES.Make
 
 
         private void InPrint()
         private void InPrint()
         {
         {
-            lbl = new ApplicationClass();
+            try
+            {
+                lbl = new ApplicationClass();
+            }
+            catch {
+                MessageBox.Show("未正确安装CodeSoft软件");
+            }
         }
         }
 
 
         private void Make_BigBoxWeight_SizeChanged(object sender, EventArgs e)
         private void Make_BigBoxWeight_SizeChanged(object sender, EventArgs e)