How to Embed Onenote Files into a Website

Hi, community.

I am trying to embed OneDrive OneNote files to my website.

As far as I used, word and excel embed into a web is successful.

However, I could not find a embed option for a OneNote file.

So I tried the other way,

Share->Get a link->add &action=embedview&wdbipreview=true to the end of the link.

The reference is here

https://support.office.com/en-us/article/Embed-your-Excel-workbook-on-your-web-page-or-blog-from-SharePoint-or-OneDrive-for-Business-7af74ce6-e8a0-48ac-ba3b-a1dd627b7773

And my code looks like

<iframe width="500" height="200" frameborder="0" scrolling="no" src=" https://something.sharepoint.com/personal/something/_layouts/15/WopiFrame.aspx?sourcedoc=something&action=embedview&wdbipreview=true”>

Still is a no go.

My web is based on wordpress and based on my search, wordpress does support embed from onedrive.

So I wonder it is because OneNote does not support to be embed for now or did I do the steps wrong.

And if so how do I make it work.

Thanks.

 

Question Info


Last updated September 18, 2018 Views 2,847 Applies to:
Answer

Hi Dayu,

Personal OneDrive has embed button as I show in the initial reply.

OneDrive for Business doesn't have the embed button.

Based on my test, I can cembed OneNote files frome OneDrive for Business with the steps below:

1. Go to OneDrive for Business, select a OneNote file.

2. Click Get link>set the link type to Anyone with this link (this is a guest link)> click OK

3. Copy the link.

4. Then open the guest link in IE/Firefox/Chrome first, after the guestaccess.aspx is changed to WopiFrame.aspx     copy the new link.

5. Create the embed code like below:

<iframe height="500" width="700" src="https://yourtenant.sharepoint.com/personal/yourtenant_onmicrosoft_com/_layouts/15/WopiFrame.aspx?folderid=12705a52a8b974053a0e3affec0eb34d6&authkey=AVlDo1i1uNrEtYD8uq4Inzs&action=embedview&wdbipreview=true"></iframe>

6. Please modify the URL with your information and check the result.

If you still cannot embed OneNote files, please provide a screenshot to describe the error message you get.

Regards,

Tina

4 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.