首页 > Windows开发 > 详细

c# Epplus读取Excel表格

时间:2021-01-11 11:52:13      阅读:72      评论:0      收藏:0      [点我收藏+]
       string ExcelName ="xxx"
       string
path = Application.StartupPath +"//"+ExcelName + ".xlsx";//获取表的地址 if (!File.Exists(path)) { MessageBox.Show(ExcelName+"表没有找到"); return; } using (ExcelPackage Excel = new ExcelPackage(new FileStream(path, FileMode.Open)))//打开表 { ExcelWorksheet sheet = ExcelBuff.Workbook.Worksheets[1]; for (int startRow= sheet.Dimension.Start.Row, endRow = sheet.Dimension.End.Row; startRow <= endRow; startRow++) { }
       }

c# Epplus读取Excel表格

原文:https://www.cnblogs.com/Rwans/p/14260639.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!