Click here to Skip to main content
16,021,430 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have given a task of showing powerpoint slides inside iframe but i don't have any regarding that,can anyone show how we can implement that.

thanx in advance
Posted
Comments
Sandeep Mewara 15-May-12 2:48am    
Did you try anything?
bellpatricia 5-Oct-17 4:05am    
The only way how you could do this is to convert your slides into some other format that can be displayed in browsers. For example, one solution would be to convert your powerpoint to pdf file in c#, or to an image file or to something else.
Here is a small sample code that uses a powerpoint library for .net framework:

var presentation = PresentationDocument.Load("Sample.pptx",
new PptxLoadOptions());
presentation.Save("Sample.pdf",
new PdfSaveOptions());

If you want to save to an image, then change the output file's name and use "ImageSaveOptions" instead or "PdfSaveOptions".
After you generate/convert your powerpoint of a compatible file format for browsers, then you just need to set the iframe's src to that file's location.

1 solution

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