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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
himnshusolution
Frequent Visitor

How to download Embedded power bi report in react using power bi apis

I have embedded power bi report in react, using there embeded services, now i want to that report in ppt or pdf formate through react, is it possible, where i make download button in react and onclick report will download. Or there other kind of solution available to download the report.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Himanshu1710max  ,

Could you please check the following info?

  • If you are using the REST API exportToFile, it is not supported for Premium Per User (PPU).
  • Ensure that the Power BI service principal or the user has the necessary permissions and that the access token is valid.
  • Make sure the Power BI React component is correctly configured with the required properties such as embedUrl, accessToken, and tokenType:How to embed a Power BI item in a React app | Microsoft Learn

In addition, the following link is the thread which has the similar problem as yours. Hope it can help you.

Solved: API ExportTo method (preview) - "API is not access... - Microsoft Fabric Community

Sorted - was using the MyWorkspace version by mistake. Needed to use the "Export To File In Group" version.

Best Regards

View solution in original post

3 REPLIES 3
Himanshu1710max
New Member

I used these exportToFile which is used to export to report in ppt,pdf,.
but when i applied these in react. then "Application is not accessable" is coming.

Anonymous
Not applicable

Hi @Himanshu1710max  ,

Could you please check the following info?

  • If you are using the REST API exportToFile, it is not supported for Premium Per User (PPU).
  • Ensure that the Power BI service principal or the user has the necessary permissions and that the access token is valid.
  • Make sure the Power BI React component is correctly configured with the required properties such as embedUrl, accessToken, and tokenType:How to embed a Power BI item in a React app | Microsoft Learn

In addition, the following link is the thread which has the similar problem as yours. Hope it can help you.

Solved: API ExportTo method (preview) - "API is not access... - Microsoft Fabric Community

Sorted - was using the MyWorkspace version by mistake. Needed to use the "Export To File In Group" version.

Best Regards

Anonymous
Not applicable

Hi @himnshusolution ,

We can use the following REST API to export report. However, it requires the report to be in a workspace backed by Premium, Embedded, or Fabric capacity.

Export Power BI embedded analytics reports API - Power BI | Microsoft Learn

Best Regards

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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