Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
siva_kiran
Microsoft Employee
Microsoft Employee

How to embed excel from Sharepoint in HTM Viewer control

Hi 

 

I have an excel on the sharepoint website and i would like to provide a preview of it (Embed that excel) in the power bi report. so i choose to take the approach of using iframe in the HTML Viewer control. below are the steps i took.

 

1. Navigate to the excel on sharepoint, open the file, click file --> share --> embed --> copy the iframe tags from Embed Source code.

<iframe width="402" height="346" frameborder="0" scrolling="no" src="https://abc.sharepoint.com/x/y/z/15/Doc.aspx?sourcedoc={<some GUID of file..masked here>}&action=embedview&wdAllowInteractivity=False&wdHideGridlines=True&wdHideHeaders=True&wdDownloadButton=True&wdInConfigurator=True"></iframe>

2. I created a sample html file and included it under html tags. Browsed the html file and it shows flawless

3. Now i created a custome filed with this iframe tag in power bi report.

4. Assigned the new filed to the HTML Viewer control.

5.Published the file to my workspace.

6. Nothing loads up in the html viewer control...I expect that the excel file to be embeded in it.

Below is the rawHTML from HTMLViewer control

siva_kiran_0-1643403750392.png

 

 

Did anyone have luck in solving similar problem

 

 

1 REPLY 1
lbendlin
Super User
Super User

please refer to this documentation on limitations.  Most likely CORS.

 

CORS & Other Known Limitations | HTML Content - Custom Visual for Power BI (html-content.com)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.