Forum Discussion
Button for Exporting a PDF from a Paginated Visual
- 2 years ago
Perhaps not exactly what you are after but this will export to pdf (after rendering the report).
https://app.powerbi.com/groups/{WORKSPACE ID}/rdlreports/{REPORT ID}?ctid={CTID}&rp:pIncomingCostCentre=06719&rdl:format=PDF&experience=power-bi
Replace {}, you can get this info by checking the url when your paginated report is rendered in a browser.
You can pass any parameter values you need within the URL using &rp:<parameter name>=<parameter value>
&rdl:format=PDF is where you define what format (you can also export to excel etc).
Drop a blank button into your desktop report and set the action to URL - you can add the url to a measure and make the parameter values dynamic from here.
If you have on prem report server there is a much nicer way of achieving this outcome.
Perhaps not exactly what you are after but this will export to pdf (after rendering the report).
https://app.powerbi.com/groups/{WORKSPACE ID}/rdlreports/{REPORT ID}?ctid={CTID}&rp:pIncomingCostCentre=06719&rdl:format=PDF&experience=power-bi
Replace {}, you can get this info by checking the url when your paginated report is rendered in a browser.
You can pass any parameter values you need within the URL using &rp:<parameter name>=<parameter value>
&rdl:format=PDF is where you define what format (you can also export to excel etc).
Drop a blank button into your desktop report and set the action to URL - you can add the url to a measure and make the parameter values dynamic from here.
If you have on prem report server there is a much nicer way of achieving this outcome.