I try to open an excel file and read the data but it always throw an error "External table is not in the expected format" i tried all possible connection strings but it also raise the error. my connection string is
@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + this._filePath + ";Extended Properties=Excel 8.0;HDR=Yes;IMEX=1;"
i also tried
@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + this._filePath + ";Extended Properties=Excel 12.0;HDR=Yes;IMEX=1;"
but it failed
and the file extension is .xls
thanks in advance