How to make a complete iframe in One Drive for Charts in excel?

Payam Taherirostami 0 Reputation points
2025-01-16T18:59:19.8666667+00:00

Hi, I'm trying to embed some parts of my excel in my html page. When I click three dots to embed my file and then try to customize it, the iframe is not completed:

<iframe width="402" height="346" frameborder="0" scrolling="no" src="?wdAllowInteractivity=False&wdHideGridlines=True&wdHideHeaders=True&wdDownloadButton=True&wdInConfigurator=True&wdInConfigurator=True"></iframe> it does not contain my resid and authkey. Any ideas why this is happening?

Thank you for your help

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,126 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,287 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 27,461 Reputation points Microsoft Vendor
    2025-01-17T02:25:44.8966667+00:00

    Hi,

    Please refer to this example of iframe code should look:

    <iframe width="402" height="346" frameborder="0" scrolling="no" src="https://onedrive.live.com/embed?resid=YOUR_RESID&authkey=YOUR_AUTHKEY&wdAllowInteractivity=False&wdHideGridlines=True&wdHideHeaders=True&wdDownloadButton=True&wdInConfigurator=True"></iframe>
    

    Replace YOUR_RESID and YOUR_AUTHKEY with the actual values from your file's URL.

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.