1 Microsoft.Office.Interop.Excel.Range range;1 for (int i = 0; i < dt.Columns.Count; i++)2 {3 worksheet.Cells[1, i + 1] = dt.Colu... Read More
posted @ 2015-11-25 18:22 赵孟蒙 Views(11178) Comments(1) Diggs(0) Edit
1 protected void ExportExcel(System.Data.DataTable dt) 2 { 3 if (dt == null || dt.Rows.Count == 0) return; 4 Microsoft.Office... Read More
posted @ 2015-11-25 16:27 赵孟蒙 Views(1306) Comments(0) Diggs(0) Edit