Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法从我的窗口/程序集目录中选择 Microsoft.Office.Interop.Excel。我可以看到有一个,但它没有让我选择引用它。我该如何选择它?
查看 COM 选项卡并搜索 Microsoft Excel 12.0 / 11.0 对象库。
添加此 COM 引用将使您的项目使用应该已安装到 GAC 的 Excel 的主要互操作程序集。
只需确保选择正确的版本,Excel 2003 为 11.0,Excel 2007 为 12.0。