无法将类型为"Microsoft.Office.Interop.Excel.ApplicationClass"的COM对象转换为接口类型为"Microsoft.Office.Interop.Excel._Application" [英] Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'

查看:743
本文介绍了无法将类型为"Microsoft.Office.Interop.Excel.ApplicationClass"的COM对象转换为接口类型为"Microsoft.Office.Interop.Excel._Application"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到错误:

无法转换类型为COM的对象 'Microsoft.Office.Interop.Excel.ApplicationClass'到接口类型 'Microsoft.Office.Interop.Excel._Application'.该操作失败 因为Query Interface调用了COM组件上的 IID'{000208D5-0000-0000-C000-000000000046}'的接口失败 由于以下错误:加载类型库/DLL时出错. (例外 从HRESULT:0x80029C4A(TYPE_E_CANTLOADLIBRARY).

Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the Query Interface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

当我尝试在VB.NET中打开Excel应用程序时 我试图重新安装excel,但没有解决问题.

When I am trying to open Excel application in VB.NET I tried to reinstall excel but didn't fix the problem.

推荐答案

在删除1.9注册表项后,我的问题已解决 开始->运行->注册表编辑-> HKEY_CLASSES_ROOT-> TypeLib-> {00020813-0000-0000-C000-000000000046}-> 1.9

My issue resolved, after deleting 1.9 registry key under Start--> Run --> regedit --> HKEY_CLASSES_ROOT-->TypeLib-->{00020813-0000-0000-C000-000000000046} --> 1.9

这篇关于无法将类型为"Microsoft.Office.Interop.Excel.ApplicationClass"的COM对象转换为接口类型为"Microsoft.Office.Interop.Excel._Application"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆