From d40f55fc2cf19c5fca6cdf9001a3b15b1040bef7 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 09 四月 2025 14:12:46 +0800
Subject: [PATCH] fqc
---
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