返回首页

当我试图运行在调试模式下的代码,我得到以下错误......任何建议,我怎么能照顾它呢?感谢


Unable to cast COM object of type 'Microsoft.Office.Interop.PowerPoint.ApplicationClass' to interface type 'Microsoft.Office.Interop.PowerPoint._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{91493442-5A91-11CF-8700-00AA0060263B}' failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155).

回答

评论会员:游客 时间:2012/02/06
Prera​​k帕特尔:无效的参考或引用一些未经注册的程序集可能会导致它。检查如果您引用Office互操作的正确版本。koolprasad2003:行给你的错误你可以发布
?koolprasad2003
评论会员:游客 时间:2012/02/06
使用下面的代码,它可以帮助你codepreMicrosoft.Office.Interop.PowerPoint.ApplicationpptApplication=spanclass="code-keyword"new/spanMicrosoft.Office.Interop.PowerPoint.Application(); PresentationpptPresentation=pptApplication.Presentations.Open(spanclass="code-string""/spanspanclass="code-string"bigstory.ppt"/span,MsoTriState.msoFalse,MsoTriState.msoFalse,MsoTriState.msoFalse);/pre/code
USABebopKid
评论会员:游客 时间:2012/02/06
做你的办公室安装维修。我认为
koolprasad2003
评论会员:imgsrc=] 时间:2012/02/06