Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel To ADO DataSet Error
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01382016
Message ID:
01382084
Views:
45
>I'm trying to get the connection string right. If I use:
>
>
>string sExcelConnString =
>    "provider=Microsoft.Jet.OLEDB.4.0; data source='" + sFileName + " '; " + "Extended Properties=Excel 8.0;";
>
>then it works fine.
>
>However, if I add the "Hdr=Yes" on the end...
>
>
>string sExcelConnString =
>    "provider=Microsoft.Jet.OLEDB.4.0; data source='" + sFileName + " '; " + "Extended Properties=Excel 8.0;Hdr=Yes";
>
>
>
>I get "Could not find installable ISAM". I googled it but I don't see what the problem is.
>
>Anyone?

Extended Properties , they are expected to be in quotes, like:
string sExcelConnString =
    "provider=Microsoft.Jet.OLEDB.4.0; data source='" + sFileName + " '; " + "Extended Properties=""Excel 8.0;Hdr=Yes""";
Previous
Reply
Map
View

Click here to load this message in the networking platform