Exemplo 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();
 }
Exemplo 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();
 }
Exemplo 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();
        }
Exemplo 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();
        }