随笔分类 -  NPOI

摘要:public class NPOIHelper { public static MemoryStream Export(DataTable dtSource, string strHeaderText, string strFileName) { string fileExt = Path.GetE 阅读全文
posted @ 2021-04-13 11:05 鞍山老菜鸟 阅读(498) 评论(0) 推荐(0) 编辑
摘要:目前例子为NPOI Excel导入 入库时调用 阅读全文
posted @ 2018-12-05 11:45 鞍山老菜鸟 阅读(264) 评论(0) 推荐(0) 编辑
摘要:var ext = Path.GetExtension(filename).ToLower(); using (FileStream fs = File.OpenRead(filename)) { IWorkbook wk; if (ext.Contains("xl... 阅读全文
posted @ 2018-03-01 09:59 鞍山老菜鸟 阅读(247) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// NPOI帮助类 /// </summary> public class NPOIHelper { public static MemoryStream Export(DataTable dtSource, string strHeaderText, string 阅读全文
posted @ 2017-09-04 17:30 鞍山老菜鸟 阅读(189) 评论(0) 推荐(0) 编辑
摘要:/// /// Excel转换DataTable /// /// 文件的绝对路径 /// DataTable public static DataTable ExcelInput(string FilePath) { //第一行一般为标题行。 Da... 阅读全文
posted @ 2017-09-04 17:28 鞍山老菜鸟 阅读(1016) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示