本文介绍了无法转换“Microsoft.Office.Interop.Excel.ApplicationClass”类型的COM对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好, 无法将Microsoft.Office.Interop.Excel.ApplicationClass类型的COM对象转换为接口类型''Microsoft.Office .Interop.Word._Application'。此操作失败,因为对于具有IID{00020970-0000-0000-C000-000000000046}的接口的COM组件上的QueryInterface调用由于以下错误而失败:不支持此类接口(HRESULT异常:0x80004002 我收到此例外: ((Word._Application)WordApp).Quit(); 请给我任何建议来解决它.. 谢谢.. 解决方案 不知道它是否会有所帮助,但请查看此帖子报告类似的公关oblem: http://stackoverflow.com/questions/12957595/error- access-com-components [ ^ ] 问候。 Hi All,Unable to cast COM object of type ''Microsoft.Office.Interop.Excel.ApplicationClass'' to interface type ''Microsoft.Office.Interop.Word._Application''. This operation failed because the QueryInterface call on the COM component for the interface with IID ''{00020970-0000-0000-C000-000000000046}'' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002I am getting this exception at: ((Word._Application)WordApp).Quit();please give me any suggestion to resolve it..Thank you.. 解决方案 这篇关于无法转换“Microsoft.Office.Interop.Excel.ApplicationClass”类型的COM对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-23 21:48