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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
divyangmunjani
Regular Visitor

Power BI embedded - Export chart to JPEG

I have embedded couple of charts on my ASP.NET MVC application. "powerbi.embed" is actually creating an iframe and inside an iframe, it is showing all the charts (SVG commands). I have one button on the screen with "Export" label.

 

When a user clicks on button chart needs to be exported in JPEG.

 

As of now, there is no feature/functionality available which can export chart into JPG.

 

I found a way if I can get the content of the iframe and get into the SVG text, I can convert SVG into JPG and get to the solution.

 

Unfortunately, when I try to get the iframe content from my page, It is throwing "access denied" error.

 

How would I achieve this, Any Idea?

 

 

 

1 REPLY 1
KumarDarmesh
Helper IV
Helper IV

I dont think you can get the iframe cotent, as it is not in the same/trust domain of your application

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors