gpt4 book ai didi

ms-office - Office Starter 是否包含 Microsoft.Office.Interop 的 DLL?

转载 作者:行者123 更新时间:2023-12-04 05:42:58 31 4
gpt4 key购买 nike

我想使用 Microsoft.Office.Interop.Excel 从 XLS 文件中提取一些数据。我安装了 Visual Studio 2010 和 Office 开发人员工具。但是,我在 var app = new Application(); 处收到 COMException 错误程序运行时。

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).



我安装了 Office Starter 2010。除非我拥有完整版的 office,否则我是否无法使用 Interop 库?

最佳答案

Microsoft Office Starter 2010 cannot run Office solutions that you create by using Visual Studio 2010. http://msdn.microsoft.com/en-us/library/bb608617.aspx



所以我会说你的问题的答案是肯定的。现在我意识到你可能已经解决了。
但以防万一其他人遇到这个问题。 :-)

关于ms-office - Office Starter 是否包含 Microsoft.Office.Interop 的 DLL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11042166/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com