I want to connect to a .xlsx file from my ASP.NET application.
Here is my connection string:
string connString = "Provider=Microsoft.ACE.OLEDB.12.0;Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};Data Source=\"C:\\MyExcel.xlsx\";Extended Properties=\"Excel 12.0 Xml;HDR=NO\"";
OleDbConnection oleConnection = new OleDbConnection(connString);
But when I try to open the connection I get Could not find installable ISAM
- Office version: 2007
- OS: windows 7 64 bit
- .NET framework 4.0
- Downloaded the 32 bit ACE driver from http://www.microsoft.com/en-us/download/details.aspx?id=13255
I even changed the platform target of my app to x86 but no success.
Please help!