基于模板创建新演示文稿 [英] Create a new presentation based on a template

查看:93
本文介绍了基于模板创建新演示文稿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图在生产服务器上的网站上创建一个ppt时,我收到以下错误:

我搜索了很多,但找不到正确的解决方案。请尽快帮我解决这个问题。





检索带有CLSID的组件的COM类工厂{91493441-5A91-11CF-8700 -00AA0060263B}由于以下错误而失败:80040154.

描述:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。



异常详细信息:System.Runtime.InteropServices.COMException:检索具有CLSID {91493441-5A91-11CF-8700-00AA0060263B}的组件的COM类工厂失败,原因是:以下错误:80040154.



第78行://基于模板创建新演示文稿。

第79行:objApp = new PowerPoint.Application();

第80行:objApp.Visible = MsoTriState.msoTrue;







谢谢

when i am trying to create a ppt in my website on production server, i am getting this below error:
I googled very much, but could not find correct solution. please help me to solve this problem ASAP.


Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80040154.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80040154.

Line 78: //Create a new presentation based on a template.
Line 79: objApp = new PowerPoint.Application();
Line 80: objApp.Visible = MsoTriState.msoTrue;



Thanks

推荐答案

我用这些链接解决了这个问题...



I solved this using these links...

for windows App with all customization
http://www.codeproject.com/Articles/28915/PowerPointCreator

for web App using openxml

http://www.codeproject.com/Articles/28915/PowerPointCreator


这篇关于基于模板创建新演示文稿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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