Click here to Skip to main content
14,302,396 members
Rate this:
Please Sign up or sign in to vote.
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
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());
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100