摘要: 工作时间太紧张了,现在终于可以闲下来一会了。继续写WinForm 对EXCEL 的操作的方法分享给大家吧。昨天写得是获取SHEET名称,今天就写一下获取SHEET数据的方法吧。即数据导出:方法1:View Code 1 public static DataTable ExcelData(string FileName, string SheetName) 2 { 3 DataSet ds = new DataSet(); 4 DataTable dt = null; 5 try 6 { 7 string strXls = FileName.Substring(FileName.LastInde 阅读全文
posted @ 2011-07-22 11:45 Aland.liu 阅读(2012) 评论(5) 推荐(3) 编辑