I am looking at some code which basically gets data from an excel spreadsheet using OleDB (OleDBDataAdapter). Is it possible to use something else in place of OleDBDataAdapter> As using this crashes due to the machine being x64.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use Excel Interop. If you are using Excel 2007 or higher you could use an OpenXML library as well. Finally if you want to stick with OleDB you could target x86 in your project’s properties to force the Jet driver loaded as x86.