I have the following problem. Have little application which read some data from excel file. Here is my connection string:
@"Provider=Microsoft.ACE.OLEDB.12.0;"+
@"Data Source=" + m_excelFileName + ";" +
@"Extended Properties=Excel 12.0;"
When I use it everything is working great but data from first rows in my excel file is read as column name. I don't want it so I must change my connection string and add this:
@"Provider=Microsoft.ACE.OLEDB.12.0;"+
@"Data Source=" + m_excelFileName + ";" +
@"Extended Properties=Excel 12.0;"+
@"HDR=NO;";
I don't know why but then my reading function doesn't work and i have communicate that:
Could not find installable ISAM
What's going wrong? Thanks for any advise.
Try surrounding the extended properties in quotes...
and remove the "@" since you need to escape the quotes