I am trying to read data from Excel file into my windows application.
Connection String :
provider = Microsoft.Jet.OLEDB.4.0; Data Source = "Excel File";
Extended Properties = \"Excel 8.0; HDR = Yes; ImportMixedTypes = Text;
Imex = 1;\"
With this connection string I am able to read data from Excel file even though Microsoft office - Excel is not installed onto the computer. But some how, my program is not compatible with this connection string.
Connection String which I am using right now is
provider = Microsoft.ACE.OLEDB.12.0; Data Source = "Excel file";
Extended Properties = "Excel 12.0; HDR = Yes; Imex = 1;
This connection string is compatible with my program but it only works on the computer which do have Microsoft office - Excel install.
Can anyone suggest me where I am making mistake.
Thanks.