Office Starter是否包括用于Microsoft.Office.Interop的DLL? [英] Does Office Starter include the DLLs for Microsoft.Office.Interop?
问题描述
我想使用Microsoft.Office.Interop.Excel从XLS文件中提取一些数据.我安装了Visual Studio 2010和Office开发人员工具.但是,程序运行时在var app = new Application();
处出现COMException错误.
I want to use Microsoft.Office.Interop.Excel to pull some data out of an XLS file. I have Visual Studio 2010 and the Office Developer Tools installed. However, I am getting a COMException error at var app = new Application();
when the program runs.
使用CLSID检索组件的COM类工厂 {00024500-0000-0000-C000-000000000046}由于以下原因而失败 错误:80040154未注册类(HRESULT的异常: 0x80040154(REGDB_E_CLASSNOTREG).
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库吗?
I have Office Starter 2010 installed. Is it the case that I can't use the Interop libraries unless I have the full version of office?
推荐答案
Microsoft Office Starter 2010无法运行您的Office解决方案 使用Visual Studio 2010创建. http://msdn.microsoft.com/en-us/library/bb608617.aspx
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
所以我想回答你的问题是.现在我意识到您可能已经解决了. 但是以防万一其他人遇到这个问题. :-)
So I'd say the answer to your questions is yes. Now I realise you probably solved it already. But just in case anyone else runs into this issue. :-)
这篇关于Office Starter是否包括用于Microsoft.Office.Interop的DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!