Win7 64位如何读取Excel文件?
我有一个 c# 应用程序,我已将其移至 64 位计算机。此应用程序读入 Excel 文件以获取某些数据输入。我想将此项目构建为 64 位。有什么办法让我的程序读取这个文件吗?我很难相信没有办法使用 Excel 文件作为 64 位应用程序的输入。我已经安装了 Office 2010 64 位以及 2010 Office System Driver Beta:数据连接组件,但没有成功。我确信我只是错过了一些非常简单的东西。
谢谢!! 账单
I have a c# application that I have moved to a 64bit machine. This application reads in an Excel file for some data input. I would like to build this project as 64bit. Is there any way to have my program read in this file? I find it hard to believe that there is no way to use and Excel file as input into a 64bit app. I have installed Office 2010 64 bit as well as the 2010 Office System Driver Beta: Data Connectivity Components with no luck. I'm sure that I'm just missing something really simple.
thanks!!
Bill
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Windows x64 不支持 Jet OLEDB 驱动程序。相反,您可以使用 Office Interop 库。添加对
Microsoft.Office.Interop.Excel
程序集的引用并尝试以下代码:请注意,您需要安装 Excel。
The Jet OLEDB driver is not supported on Windows x64. Instead you could use the Office Interop library. Add reference to the
Microsoft.Office.Interop.Excel
assembly and try the following code:Note that you will need to have Excel installed.