Reading Excel InterMixed DataType Without Modifying Registry Key
问题 I am trying to use C# to read excel file which has intermixed datatype. Below is my connection string var path = //xls location var MyConnection = new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; Data Source='" + path + "';Extended Properties='Excel 8.0;IMEX=1;'"); Research taught me that the complete Extended Properties in the connection string is supposed to be Excel 8.0;IMEX=1;HDR=NO;TypeGuessRows=0;ImportMixedTypes=Text However, I was informed that in connection string, the