My local PC is installed with Windows7 64bit and Microsoft Excel 2010
But most of my clients’ PC are XP Professional Service Pack 3 and Excel 2003
I got this connection string for import data of Excel file
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";
But this throws an error saying that
The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
I want my application can read Excel file on both, x86 and x64, architectures.
How can i handle this programmatically without installing extra Excel driver on PC?
I’m thinking to use different connection strings for importing Excel files based on CPU archtiecture.
Is there any better idea?
Make sure you have installed the Jet driver that supports both x86 and x64 on your development system.
Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine