日期:2014-05-20 浏览次数:20913 次
OdbcConnection odbcConn = new OdbcConnection(@"Driver={Microsoft Excel Driver (*.xls,*.xlsx,*.xlsm,*.xlsb)}; DBQ=E:\App\Work\testCxpHomeMatrixSpec7-List.xlsx");
"E:\App\Work\testCxpHomeMatrixSpec7-List.xlsx"
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
OleDbConnection oledbConn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;" + @"Data Source=" + @"testCxpHomeMatrixSpec7-List.xls" + ";" + "Extended Properties=\"Excel 8.0;HDR=No;IMEX=1\"");