https://www.aspsnippets.com/Articles/Read-Excel-file-using-OLEDB-Data-Provider-in-C-Net.aspx
Regarding the above ....
I get error saying oledb12.0 is not registered in my local machine...
Also nowadays we have 16.0 ...
Which version of oledb provider do we use so that our code runs on all machines ols and new 4.0, 12.0, 15.0, 16.0???
You need to download the Microsoft Access Database Engine 2010 Redistributable from the link provide in the article.
Once you Download it will prompt you to select the architecture i.e. 32 BIT (x86) or 64 BIT (x64) and install it.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.