摘要: //导入Excel,返回一个数据集 public DataSet InputExcel (string Path) { string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" +"Data Source="+ Path +";"+"Extended Properties=Excel 8.0;"; OleDbConnection conn = new OleDbConnection(strConn); conn.Open(); string strExcel = ""; OleDbDataAdapter myCommand = null; DataSet ds = null; strExcel="select * from [sheet1$]"; myComman 阅读全文
posted @ 2008-11-19 17:48 BraveChen 阅读(356) 评论(0) 推荐(0) 编辑