SOLVED

Embed powerpoint in Sharepoint Site

Copper Contributor

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-9a0..." 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.

3 Replies
best response confirmed by VI_Migration (Silver Contributor)
Solution

@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. 

2019-10-16_1356.png

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.

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.
1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
Solution

@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. 

2019-10-16_1356.png

View solution in original post