Hi,
does anyone have some working code to read a normal xls file using asp.
I have a couple of examples myself but they refuse to work?? I don't know if it's a compatibility issue as I'm writing xls from office 2k7.
I've breilfly attempted to read xlsx but the required driver doesn't appear to be installed - Note to Warren can you install the Microsoft.ACE.OLEDB.12.0 provider.
I've tried all the following connection strings
and this was the xlsx connection string I tried:Code:"DRIVER={Microsoft Excel Driver (*.xls)}; IMEX=1; HDR=NO; Excel 8.0; DBQ=" & sFilePath & "; " "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & sFilePath & ";Extended Properties=""Excel 8.0;HDR=NO;"""
Any help would be greatly appreciated.Code:Provider=Microsoft.ACE.OLEDB.12.0;Data Source="&sFilePath&";Extended Properties=""Excel 12.0 Xml;HDR=YES"";"
Regards
Keith


Reply With Quote

Bookmarks