Oct 16 2019 06:42 AM
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.
Oct 16 2019 01:59 PM
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.
Oct 17 2019 02:55 AM
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.
Jul 29 2021 01:19 PM
Oct 16 2019 01:59 PM
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.