Click here to Skip to main content
16,012,843 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have notes in ppt and i want to show it as ppt slide show in my .aspx page

how can i make this ?
with asp c# code.
Posted
Updated 15-Feb-13 20:12pm
v2
Comments
Kipperr 7-Mar-17 5:48am    
Sergey provides a great answer, however the problem is that it's not recommended to use office interop on server side, it has a lot of issues when being runned from multithreaded enviroment. Instead I've used a PowerPoint library for C# and VB.NET and converted each slide into an image and then used an image slider in my ASP.NET application. This example demonstrates how to convert PowerPoint files into PDF in C#, and you can use the exact same approach to generate JPEG or PNG output.

1 solution

You need to represent PPT show in HTML. PPT is a proprietary format not standardized for the Web.

However, if your server-side OS is Windows (which is not always the case with ASP.NET, but almost always), you can use PPT files on the server side and generate HTML on the fly. As PPT and HTML concepts are different, and there is no predefined one-to-one correspondence, you should provide some mapping rules to your algorithm of the generation of this show.

Overall, is can be pretty big work. It you do it well, you can achieve the slide show very close to PPT original or even better. I saw a number of sites doing it with real PPT files and giving quite smooth presentations (sorry, I don't have any links to show you; and some sites were corporate-access only).

To read PPT, you can use Microsoft.Office.Interop.PowerPoint. When you install Office, the interop assembly will be installed in your GAC, so you add the reference using the tab ".NET" of Visual Studio "Add Reference" window.

Of course, if you use Office Interop, you will need the installation of matching Office version on the server host.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900