Export PowerBI report to PDF,PPT or an Image
anmolmalik97 opened this issue · 3 comments
Hi team, I'm new to PowerBI and have used this library to embed one of the reports inside the react app.
I've checked through the issues and documentation but couldn't find any way to do it.
Any help would be highly appreciated.
Thanks in advance!
This might be a late reply, but for anyone that encounters this. You might want to look into ExportToFile API.
Follow these steps to export the report.
-
Sending an Export request- Send an export request. Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn
-
Polling - Use polling to identify the status of your export and when the file will be ready from the response object which have percentComplete and status.
-
Getting the File - Once your report available, you can generate a blob response, and create a URL object from the blob and set it as href of link element. When user clicks the link, browser will download the file.
Feel free to reach out for any queries if you're facing
References:
Export Power BI embedded analytics reports API - Power BI | Microsoft Learn