Could not find installable ISAM

前端 未结 7 1785
Happy的楠姐
Happy的楠姐 2020-11-28 15:52

I have the following code :

string excelConnectionString = @\"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\db\\suc.xls; Extended Properties=\"\"Excel 1         


        
7条回答
  •  生来不讨喜
    2020-11-28 16:43

    I was getting this issue trying to opening an xls file with a more recent provider. I fixed this issue by changing my extended properties from

    Extended Properties="Excel 11.0;"
    

    to

    Extended Properties="Excel 8.0;"
    

    I guess Excel 11 expects an xlsx style file.

提交回复
热议问题