我已经在我的系统中打开了PPT文档,只是从c#(WPF)异常打开了新的PPT文档,下面是日志文件中的相关文本:
使用CLSID {91493441-5A91-11CF-8700-00AA0060263B}检索组件的COM类工厂,但由于以下错误而失败: 80080005
使用给定的代码:
Microsoft.Office.Interop.PowerPoint.Application ppApp = new Microsoft.Office.Interop.PowerPoint.Application();Windows 7专业,64位Office 2007,所有组件都安装好了。
我该怎么处理呢?
我需要任何建议。
发布于 2012-02-02 18:23:21
试一试,但将其更改为Microsoft.Office.Interop.PowerPoint:
string[] SplitHTML = fileName.Split('.');
string NameNoExt = SplitHTML[0];
string FileAsHtml = NameNoExt + ".html";
//Word with the document
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document _doc = wordApp.Documents.Open(uri);
_doc.SaveAs2(FileAsHtml, Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatHTML);
_doc.Close(false);
wordApp.Quit();
System.Runtime.InteropServices.Marshal.ReleaseComObject(_doc);
browser.Navigate(FileAsHtml);https://stackoverflow.com/questions/9112396
复制相似问题