摘要: NPOI的C# Helper代码2 1 public static MemoryStream ExportXls(DataTable dt) 2 { 3 HSSFWorkbook wk = new HSSFWorkbook(); 4 ISheet sheet = null; 5 6 string s 阅读全文
posted @ 2016-12-20 22:32 森林长 阅读(330) 评论(0) 推荐(1) 编辑
摘要: NPOI的C# Helper代码 1 public static void WriteExcel(DataTable dt, string filePath) 2 { 3 if (!string.IsNullOrEmpty(filePath) && dt.Rows.Count > 0) 4 { 5 阅读全文
posted @ 2016-12-20 21:49 森林长 阅读(437) 评论(0) 推荐(1) 编辑