Do I need to have Excel installed to query spreadsheets using an OleDB Provider?

后端 未结 2 1789
生来不讨喜
生来不讨喜 2020-12-10 09:41

I am working on some software that uses an OleDB to open a .xls file, query some data, and fill a dataset with the results. I am now looking at using this software on syste

相关标签:
2条回答
  • 2020-12-10 09:51

    You don't have to have office or the office data connectivity installed, you can use the Jet for OleDB engine which is installed on pretty much every windows machine in existence. However it's very old technology and is limited to 32 bit.

    http://msdn.microsoft.com/en-us/library/ms175866.aspx

    If you want to avoid this mess entirely then switch over to an app.config file or a properties file and you can get the pure .net solution.

    0 讨论(0)
  • 2020-12-10 10:00

    You need either the full Office or the Office Data Connectivity Components installed on the client computers.

    0 讨论(0)
提交回复
热议问题