string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" +"Data Source="+ Path +";"+"Extended Properties=Excel 12.0;";OleDbConnection conn = new OleDbConnection(strConn);conn.Open(); string strExcel = ""; OleDbDataAdapter myCommand = null;DataSet ds = null;strExcel="select * from [sheet1$]";myCommand = new OleDbDataAdapter(strExcel, strConn);ds = new DataSet();myCommand.Fill(ds,"table1"); return ds;红色代码抛一场:找不到可安装的 ISAM,我怀疑蓝色代码有问题,但是找不到原因
1 回答
- 1 回答
- 0 关注
- 882 浏览
添加回答
举报
0/150
提交
取消