support different Office versions with Office Automation

后端 未结 3 1686
孤城傲影
孤城傲影 2020-12-30 05:53

We created an application that uses Office 2007 (Excel 2007) to read in data from an Excel worksheet. However. I noticed that when I want to deploy the application on a syst

3条回答
  •  情话喂你
    2020-12-30 06:41

    Depending on whether you have any other requirements (you say reading data from excel), you can use the OLEDB driver to connect to the excel file and query it in a SQL manner.

    Example: http://codehill.com/2009/01/reading-excel-2003-and-2007-files-using-oledb/

提交回复
热议问题