Forum Discussion
Embed Excel Workbook From SharePoint
I'm not trying to add a web part. I'm attempting to take a hosted (in SharePoint document library) Excel workbook and embed it in an external website. In the Consumer OneDrive service there is actually a right-click context button that can generate your embed code for you in javascript or html.
My question had to do with the supported parameters when embedding a workbook through an iFrame (see the link I provided in my original post). I'm finding that the parameters don't have any effect on the content rendered through the iFrame. As I mentioned earlier, the parameters work in OneDrive Consumer but not SharePoint Online or OneDrive for Business.
- Riley HaleJan 23, 2017Brass Contributor
I have not. I'm not real experienced with Fiddler, and I'm not real sure what I would even be looking for.
- Pramod NathanJan 24, 2017Copper Contributor
OK. Not a problem. Just wanted to clarify a few thing
1. Where are the files located?
- SharePoint
- OneDrive for Business
2. Can you access the link without logging on? (to test this get the URL - feel free to share it with me in an email if you are not comfortable with sending it on the message).
If it can be accessed externally then I can look at the parameters and if they work.
- Riley HaleJan 24, 2017Brass Contributor
1. I've confirmed that the problem occurs if I host the files in either SharePoint or OneDrive for Business.
2. I can access the file in a browswer with no active Office 365 sessions without any issue. I put together a small example to show that the parameters do not work:
https://www4.uwm.edu/grad_school/test_embed/
The Excel file is hosted in SharePoint in this case, and I created the link to it as "View Link - no sign in required." If you check the html source you'll see that the iframe has the parameter "&wdDownloadButton=True" but the download button simply doesn't appear on the bottom of the embedded iframe.