17

Is there any way to embed a PowerPoint slide show in an HTML page using just the standard tags etc? I tried using a iframe, but that just results in the PowerPoint being downloaded.

<iframe src="Chapter1.pptx">Your browser does not support.</iframe>

I am looking for a way to show the slide show using only standard stuff. I realize I could use google docs or flash or something, but I'd rather have a simple implementation.

Does the web just not know how to process a PowerPoint presentation?

Snowy Coder Girl
  • 5,408
  • 10
  • 41
  • 72

11 Answers11

71

Plain and simple...this is the best method to embed any Microsoft or Adobe file into a HTML website.

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[https://www.your_website/file_name.pptx]' width='100%' height='600px' frameborder='0'>

Shane
  • 719
  • 5
  • 2
15

Just to update this question - as there is a new way to embed Powerpoints in a web page. If you have an account on OneDrive, do the following using Powerpoint Online (accessing Powerpoint via the browser) to embed a Powerpoint:

  1. Click 'File', then 'Share', then 'Embed' Share Powerpoint
  2. Click the 'Generate' button to generate HTML code to be embedded Generate HTML
  3. Copy the 'Embed Code' and paste it in the HTML of a website Copy Embed Code
bnp887
  • 5,128
  • 2
  • 26
  • 30
5

Web browsers don't understand power point, but there are solutions besides Flash.

You could export it to HTML or a PDF. Or you could also upload to site like slideshare and make use of their players which are built for this problem.

numbers1311407
  • 33,686
  • 9
  • 90
  • 92
  • 1
    +1, thanks for the help. I have decided to use YouTube (see answer). Thanks again. ^_^ – Snowy Coder Girl Aug 18 '11 at 02:07
  • Hey, please give me solution for without putting ppt on the drive and take from the server then how do they do it? –  Sep 07 '17 at 10:23
3

I tried answer posted by Shane, which looks exactly right and how MS used to have PPT viewing online earlier but it didn't worked for me. After doing some research I found out that the link has changed a bit.

So use: https://view.officeapps.live.com/op/view.aspx instead of https://view.officeapps.live.com/op/embed.aspx

Example:

<iframe src='https://view.officeapps.live.com/op/view.aspx?src=[https://www.your_website/file_name.pptx]' width='100%' height='600px' frameborder='0'>

Note: Link to PPT need to be publicly accessible.

SumitK
  • 209
  • 2
  • 7
3

I have decided to take a hack route and upload the powerpoint onto YouTube and then just include the youtube video in the iframe.

<iframe height="375" width="600" src="http://www.youtube.com/embed/assignedId"></iframe>

I know, it's cheap, but it's also easy.

EDIT

I eventually checked my page as XHTML Strict, which does not support the <iframe> tag. So I used the object tag instead.

<object data="http://www.youtube.com/embed/assignedId"> 
Snowy Coder Girl
  • 5,408
  • 10
  • 41
  • 72
  • Hey, please give me solution for without putting ppt on the drive and take from the server then how do they do it? –  Sep 07 '17 at 10:23
2

Use Microsoft skydrive, upload your power point to this site and use this code

where

http://skydrive.live.com/redir.aspx?cid=20f065afc1acdb2e&page=view&resid=20F065AFC1ACDB2E!723&parid=20F065AFC1ACDB2E!719 is the URL of the powerpoint file.

You have to replace SD20F065AFC1ACDB2E!723 for your own string of the corresponding URL

1

Upload a PowerPoint document on your Google Drive and then 'Share' it with everyone (make it public): Sharing your pptx doc

Then, go to File > Publish to the web > hit the publish button.

Go to Embed and copy the embed code and paste it to your web page

Copy embed code

nurealam siddiq
  • 1,567
  • 10
  • 9
1

Works Best for me.

  1. Goto MS View Office Documents Online Page

  2. Enter link to PPT file Note: This link should be publicly Accessible

  3. Click on Create URL.

  4. Link to view office documents online will be generated.

  5. Paste this link to any webpage or as iframe src attribute.

You are all set!! :)

0

If you are using Google slides you could easily publish it on the web and also embed the slide in an iframe.

Go to google slides -> file-> sharing -> embed and copy the code

enter image description here

and then in your HTML file use the below code to show slides in fullscreen mode.

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="css/journey.css">
    </head>
<body>
    <!-- show slides in html web page -->
    <iframe src="https://docs.google.com/presentation/d/e/2PAxxxxxCX-xxxxxxxx-_GuZImZqRUxxxxxxxxxx/embed?start=true&loop=false&delayms=3000" frameborder="0" width="1440" height="839" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
</body>
</html>
Mahesh Jamdade
  • 17,235
  • 8
  • 110
  • 131
-1

why not use prezi, I just use it in my work, very easy and useful.

enter image description here

taotao.li
  • 1,050
  • 2
  • 11
  • 23
-1

I was able to do this by saving the PPT as an mp4 (Save As > MPEG-4 Video (*.mp4)) and then using the video tag.

<video controls autoplay preload="none" style="width:1000px;">
<source src="/_dev/power_point/m11983.mp4" type="video/mp4" />
<p>Your browser does not support HTML5 Video.</p>
</video>
Aba
  • 584
  • 6
  • 11