摘要:
工作时间太紧张了,现在终于可以闲下来一会了。继续写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 阅读全文