Beispiel #1
0
 public static void DataTableToExcel(DataTable tbData, string sFile, string sTitle)
 {
     frmProgressDataToExcel excel = new frmProgressDataToExcel {
         DataSourceType = IEDataSourceType.dstDataTable,
         TbData = tbData,
         RptTitle = sTitle.Trim(),
         FileName = sFile
     };
     excel.ShowDialog();
     excel.Dispose();
 }
Beispiel #2
0
 public static void DataGridViewToExcel(DataGridView grdX, string sFile, string sTitle)
 {
     frmProgressDataToExcel excel = new frmProgressDataToExcel {
         DataSourceType = IEDataSourceType.dstDataGridView,
         GrdData = grdX,
         RptTitle = sTitle.Trim(),
         FileName = sFile
     };
     excel.ShowDialog();
     excel.Dispose();
 }
Beispiel #3
0
        public static void DataTableToExcel(DataTable tbData, string sFile, string sTitle)
        {
            frmProgressDataToExcel excel = new frmProgressDataToExcel {
                DataSourceType = IEDataSourceType.dstDataTable,
                TbData         = tbData,
                RptTitle       = sTitle.Trim(),
                FileName       = sFile
            };

            excel.ShowDialog();
            excel.Dispose();
        }
Beispiel #4
0
        public static void DataGridViewToExcel(DataGridView grdX, string sFile, string sTitle)
        {
            frmProgressDataToExcel excel = new frmProgressDataToExcel {
                DataSourceType = IEDataSourceType.dstDataGridView,
                GrdData        = grdX,
                RptTitle       = sTitle.Trim(),
                FileName       = sFile
            };

            excel.ShowDialog();
            excel.Dispose();
        }