This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
In Power BI Service you can already publish your report to PDF or PowerPoint formats and easily create a document or a slide deck based on your Power BI report. Today we are thrilled to announce an additional layer of capabilities, allowing you to export a Power BI report by using a REST call, to the following file formats: PDF, PPTX (PowerPoint) and PNG.
You can use this Export-To-File API in a variety of ways, such as:
Send to print button - In your application, create a button that when clicked on triggers an export job. The job can export the viewed report as a PDF or a PPTX, and when it's complete, the user can receive the file as a download. As the API is asynchronous, it may take some time for the file to be available.
Email attachment - Send an automated email at set intervals, with an attached PDF report. This scenario can be useful if you want to automate sending a weekly report to executives.
When the Export-To-File API is called, it triggers an export job. After triggering the export job, you can use the Polling API to track the job until it is complete. When the export job is complete, the Polling API call returns a Power BI URL for getting the file (The URL is available for 24 hours). The API supports concurrent export job requests. The number of jobs you can run at the same time, depends on the SKU your report resides on, as detailed in this table.
The following set of capabilities are provided with the new API:
Please also be aware that as all new Power BI APIs, the Export-To-File API is included only in the Power BI APIs .NET SDK v3.
What’s coming next…
Later this month, we will also have support for paginated reports through this API as well. There are several additional capabilities through the API you will have for paginated reports, including additional file formats, formatting options and data sources supported. Look for a full blog post from the Power BI team once that support is live.
Please use the following resources to learn more about the new API, get your questions answered, and give us feedback and suggestions:
Export report to file code examples
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.