Issue while establishing connection with excel
-
01-10-2019 - |
Pergunta
The below connection string establishes connection with excel file which has extension as '.xls' but same string throws an exception while opening a connection with file which has extension as .xlsx.
Any idea?
ConnectionString = Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Users\abcd\Desktop\demo.xls; Extended Properties=excel 8.0; Persist Security Info=False
Solução
This is because you need a different connection string for xlsx'es.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow