简体   繁体   English

以编程方式调用并显示Powerpoint演示文稿

[英]programmatically call and present a power point presentation

I have an ASP.NET C# web application where users can upload their PowerPoint presentations(ppt files). 我有一个ASP.NET C#Web应用程序,用户可以在其中上传PowerPoint演示文稿(ppt文件)。 I want programmatically (with C#), to call a power point presentation and be able to present it from a webpage. 我想以编程方式(使用C#)调用Powerpoint演示文稿,并能够从网页中进行演示。 Is it possible? 可能吗? And how can I do this? 我该怎么办呢?

You can use Interop to save the uploaded Powerpoint presentation as a series of graphics (eg PNG). 您可以使用Interop将上传的Powerpoint演示文稿另存为一系列图形(例如PNG)。 Within Powerpoint, that would be File / Save As / *.png. 在Powerpoint中,该文件为文件/另存为/ * .png。 You can accomplish the same programatically. 您可以通过编程来完成相同的操作。 Running interop code from ASP.Net is not a good idea. 从ASP.Net运行互操作代码不是一个好主意。 You can run a windows service that watches for uploaded ppt files and converts them to a corresponding series of images. 您可以运行Windows服务来监视上载的ppt文件,并将其转换为相应的图像系列。

This would not preserve transitions and animations, but would otherwise work fine. 这将不会保留过渡和动画,但否则会正常工作。

You can then use a slideshow gallery to display the various images (eg using Flash or JavaScript... there are many solutions available on the web). 然后,您可以使用幻灯片库来显示各种图像(例如,使用Flash或JavaScript ...网络上有很多解决方案)。

Alternatively if you can ensure that the end user has at least the free Powerpoint viewer installed, you can return the ppt file to them with the appropriate mime type set, and the viewer will display it. 或者,如果可以确保最终用户至少安装了免费的Powerpoint查看器,则可以将ppt文件返回给他们并设置适当的mime类型 ,然后查看器将显示它。

Change the Powerpoint presentation into series of graphic using interop assembly as Eric said To make slideshow gallery you can follow below link which illustrated it very well with coding. 如Eric所述,使用互操作程序集将Powerpoint演示文稿更改为一系列图形。要制作幻灯片库,您可以按照下面的链接进行链接,该链接很好地说明了编码。 You have to use javascript to accomplish it. 您必须使用javascript来完成它。

Visit http://www.c-sharpcorner.com/uploadfile/anjudidi/making-an-image-slideshow-in-Asp-Net/ 访问http://www.c-sharpcorner.com/uploadfile/anjudidi/making-an-image-slideshow-in-Asp-Net/

The below link also show how to create slide show but it is taking graphics from database. 下面的链接还显示了如何创建幻灯片,但是它正在从数据库中获取图形。 http://www.aspdotnet-suresh.com/2011/12/jquery-lightbox-image-slideshow-gallary.html http://www.aspdotnet-suresh.com/2011/12/jquery-lightbox-image-slideshow-gallary.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将Powerpoint演示文稿的Blob数据转换为UI中的图像滑块 - how to convert blob data of a power point presentation into a image slider in the UI 网页控制可查看PDF文件,视频和Power Point演示文稿 - Web control to view PDF files, videos and power point presentation c#openxml设置自运行功率点演示 - c# openxml set up self running power point presentation 试图从演示文稿文档中获取所有幻灯片部分时,PowerPoint模板已损坏 - Power point template gets corrupted while trying to get all slide parts from presentation document 以编程方式编辑 PowerPoint 演示文稿中的文本 - Programmatically editing text in a powerpoint presentation Sitecore-以编程方式更改演示文稿的详细信息 - Sitecore - change presentation details programmatically 以编程方式更改“演示文稿显示模式” - Programmatically changing the “presentation display mode” C#:如何从以编程方式在Power Point中创建的表中删除第一行颜色 - C#: How to remove first row color from table created in power point programmatically 在Windows中以编程方式确定电源使用情况? - Determine power usage programmatically in Windows? 以编程方式更改Windows电源设置 - Programmatically change Windows power settings
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM