I have read a lot of information about this issue.
And there are many questions in SO for this , but the problem still remains and it is the following:
I have understand that this connection string
is for the older versions of Office :
string oldCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
+ path + ";" + "Extended Properties='Excel 8.0;HDR=NO;IMEX=1;'";
and I know that there is this connection string
for the newer versions of Office:
string nweCon = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source="
+ path + ";Extended Properties=Excel 12.0;";
However , when I use the connection string
for the newer versions with the ACE , I have this error :
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
I have also read in other questions that I should install ACE first and the everything will work fine.
I do not have ACE driver installed neither the other computers that should use this Application, is there a way to read the Excel files using the JET for Office 2016 or 365 (everything above 2003).
I can not install the ACE in every of my clients in order to be able to work with my Application , it is not practical at all.
Is there a way to do this?