Browse Source

调整yb6156报告预览方式

cxs 4 months ago
parent
commit
664ebac4ba
1 changed files with 5 additions and 5 deletions
  1. 5 5
      OTSIncAReportApp/1-UI/GBCalculate/YB6156ABCD.cs

+ 5 - 5
OTSIncAReportApp/1-UI/GBCalculate/YB6156ABCD.cs

@@ -473,12 +473,12 @@ namespace OTSIncAReportGB
         private void button_export_Click(object sender, EventArgs e)
         {
             XtraReport_yb6156 Report_yb6156 = new XtraReport_yb6156(dt_yb6156);
-            //DevExpress.XtraReports.UI.ReportPrintTool tool = new DevExpress.XtraReports.UI.ReportPrintTool(Report_yb6156);
-            //tool.ShowPreview();
+            DevExpress.XtraReports.UI.ReportPrintTool tool = new DevExpress.XtraReports.UI.ReportPrintTool(Report_yb6156);
+            tool.ShowPreview();
 
-            XRDesignForm designForm = new XRDesignForm();
-            designForm.OpenReport(Report_yb6156);
-            designForm.Show();
+            //XRDesignForm designForm = new XRDesignForm();
+            //designForm.OpenReport(Report_yb6156);
+            //designForm.Show();
         }
     }
 }