From 4a8df7e654aa502694bcff271b216c46e26c788b Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期日, 06 四月 2025 10:46:27 +0800
Subject: [PATCH] 汽泡提示

---
 DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs b/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
index 1196a45..11187d2 100644
--- a/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
@@ -1,18 +1,8 @@
-锘縰sing DevExpress.Utils.VisualEffects;
-using DevExpress.XtraBars;
-using DevExpress.XtraEditors;
-using Gs.DevApp.DevFrm.Rpt;
+锘縰sing Gs.DevApp.DevFrm.Rpt;
 using Gs.DevApp.DevFrm.Sys;
 using Gs.DevApp.ToolBox;
 using Newtonsoft.Json;
 using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows.Forms;
 
 namespace Gs.DevApp.UserControl
@@ -65,8 +55,16 @@
             _bl = _ckRptService();
             if (_bl)
             {
-                var frm = new RptPreview(guidKey, rptParameter);
-                frm.ShowDialog();
+                try
+                {
+                    using (Form frm = new RptPreview(guidKey, rptParameter))
+                    {
+                        frm.ShowDialog();
+                    }
+                }
+                catch (Exception)
+                {
+                }
                 return;
             }
 

--
Gitblit v1.9.3