Esempio n. 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();
 }
Esempio n. 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();
 }
Esempio n. 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();
        }
Esempio n. 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();
        }