Browse Source

添加初始化打印程序异常处理

章政 8 years ago
parent
commit
9466431758
1 changed files with 8 additions and 1 deletions
  1. 8 1
      UAS-MES/FunctionCode/Make/Make_PackageCollection.cs

+ 8 - 1
UAS-MES/FunctionCode/Make/Make_PackageCollection.cs

@@ -35,7 +35,14 @@ namespace UAS_MES.Make
         //创建打印进程
         private void NewPrint()
         {
-            lbl = new ApplicationClass();
+            try
+            {
+                lbl = new ApplicationClass();
+            }
+            catch (Exception ex)
+            {
+                MessageBox.Show("未正确安装codesoft");
+            }
         }
 
         private void 包装采集_Load(object sender, EventArgs e)