Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I would like to know if it's possible to export a report from Power Bi Server with code or It's just possible with power BI pro or embedded.
I have a report and I want to export to PDF or images.
Thanks.
Solved! Go to Solution.
Yes this is possible and you don't even need much code. The simplest way to do this is with URL parameters using the ReportServer endpoint (see https://docs.microsoft.com/en-us/sql/reporting-services/url-access-parameter-reference?view=sql-serv...)
Passing the url parameters something like the following would get you a PDF:
http(s)://<server>/ReportServer?<pathToReport>&rs:Command=Render&rs:Format=PDF
And if your report has parameters you can pass those in on the url also.
HI @anthony_snk ,
maybe my solution is to easy but I would print it with the print function and configure the printer as PDF creator.
Best,
Kathrin
If this post has helped you, please give it a thumbs up!
Did I answer your question? Mark my post as a solution!
Yes this is possible and you don't even need much code. The simplest way to do this is with URL parameters using the ReportServer endpoint (see https://docs.microsoft.com/en-us/sql/reporting-services/url-access-parameter-reference?view=sql-serv...)
Passing the url parameters something like the following would get you a PDF:
http(s)://<server>/ReportServer?<pathToReport>&rs:Command=Render&rs:Format=PDF
And if your report has parameters you can pass those in on the url also.
Is it possible to specify an file name for the exported pdf file?
@JeremieB wrote:
Is it possible to specify an file name for the exported pdf file?
No, it defaults to the name of the report and there is no option to specify an alternate name
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
7 | |
5 | |
3 | |
3 |