Forum Discussion

dothms's avatar
dothms
Copper Contributor
Oct 16, 2019
Solved

Embed powerpoint in Sharepoint Site

Hello everyone!

 

I would like to embed a powerpoint in a Sharepoint site.

Sadly, when I embed a powerpoint, sometimes it works, sometimes it doesn't...

I am using the code provided on sharepoint online, and I insert it a Script Editor in the content of my sharepoint site. The porwerpoint in stored in the same sharepoint site, in a library with the same access rights as the page where I want to embed the powerpoint.

Sometimes it works perfectly fine   and evryone can see the powerpoint, sometimes, intead of the embedded powerpoint, I ave a "Access denied" message... And if I refresh the page, it may work (or not). 

 

Here is the example of the code I use:

<iframe src="https://portal.mycompany.com/sites/MySite/_layouts/15/WopiFrame.aspx?sourcedoc={1ff8sd-21se-4fdf-9a0a-1e08e1cdzd8e}&amp;action=embedview&amp;wdAr=1.7777777777777777" width="610px" height="367px" frameborder="0">This is an embedded <a target="_blank" href="https://office.com">Microsoft Office</a> presentation, powered by <a target="_blank" href="https://office.com/webapps">Office Online</a>.</iframe>

 

Is there another way to do it? Why is the access denied from time to time?

 

Best,

D.

  • dothms You might have already tried this option, but for this if you are using modern team site or communication site my preferred option is adding the presentation through File viewer web-part. 

  • Will_McIntosh's avatar
    Will_McIntosh
    Copper Contributor
    Hello!

    Using the preset Site Builder on SharePoint, when you go to add content with the plus symbol, select the "File Viewer" option. This allows you to access files either stored on SharePoint or elsewhere. Although this isn't really an embed, it provides all the functionality of a slideshow. It is an easy way to show a PowerPoint to people within your organization.
  • Vikram_Samal's avatar
    Vikram_Samal
    Steel Contributor

    dothms You might have already tried this option, but for this if you are using modern team site or communication site my preferred option is adding the presentation through File viewer web-part. 

    • dothms's avatar
      dothms
      Copper Contributor

      Thank you for your answer.

       

      Sadly, I want to put the embedded ppt in a customed HTML code to have a nice menu hiding and showing div parts. So I guess I cannot use this option.

Resources