简体   繁体   中英

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). I want programmatically (with C#), to call a power point presentation and be able to present it from a webpage. 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). Within Powerpoint, that would be File / Save As / *.png. You can accomplish the same programatically. Running interop code from ASP.Net is not a good idea. You can run a windows service that watches for uploaded ppt files and converts them to a corresponding series of images.

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).

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.

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. You have to use javascript to accomplish it.

Visit 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM