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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
DongNguyen
New Member

Embed SharePoint documents (pdf,jpg,word) in iframe to display in power bi

Hi all

I am facing an error that is "XXXX..sharepoint.com refused to connect." when I am trying to use SharePoint URL to embed those SharePoint documents (pdf, jpg, word) in iframe to display in power bi.

 

Thanks for your help 

 

4 REPLIES 4
v-yueyunzh-msft
Community Support
Community Support

Hi , @DongNguyen 

As far as I know, the main content of the Power BI service's ability to generate "iFrame" embedded statements for reports is that a link to Power BI reports is built into the iFrame statement, about what you call "embed those SharePoint documents (pdf, jpg, word)" According to my research and understanding of the official documentation, there is no design and introduction to this feature. Did you customize your own iFrame statement? If convenient, can you provide an embedded statement for your "iFrame"?

vyueyunzhmsft_0-1664847340240.png

For more information, you can refer to :

Easily embed secure Power BI reports in your internal portals or websites | Microsoft Power BI Blog ...

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

What I did is transforming my SharePoint link into HTML (exp: "<iframe src=https://XXXX.sharepoint.com/sites/mktng/Shared Documents/XXXX.pdf style='position: fixed; width: 100%; height: 100%'></iframe>" and then using the HTML content viewer on the Power Bi visual store to view those documents. 

Hi, @DongNguyen 

As per your description, make sure you allow the ability to Embed content on SharePoint Pages, below article for allowing:

Allow or restrict the ability to embed content on SharePoint pages

How to embed content from other websites in SharePoint Online

Try to go to site settings-> HTML Field Security, check the option "Allow contributors to insert iframes from any domain".

For your reference: Add content to your page using the Embed web part

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Hi Aniya

I had tried all of your mentioned methods but I still haven't been able to get around this error.

Thank you for your help anw

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors