Forum Discussion
Print in powerBI embedded
Huge thank you to everyone who has provided helpful answers in previous posts.
As the feature has been requested and is still unavailable, I am looking for a workaround to achieve the capability of printing or creating pdf from report view within powerBI embedded reports.
I was thinking of using a combination of js to pdf and html5 canvas to put the report view within an html canvas element and print to a pdf file. Although because the powerBI embedded sample runs within MVC .NET framework I am not sure where to put the canvas element tags to capture the powerBI embedded report container that is generated in html when the page loads.
Here is an example of the function I want to use:
https://jsfiddle.net/mqrpnppj/
I am not sure if this approach will work but any responses are appreciated.
- ronnoc, You may do research into the new Power BI JavaScript API. https://powerbi.microsoft.com/en-us/blog/intro-pbi-js-api/ https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics#print-a-report
3 Replies
- v-chuncz-msftCommunity Supportronnoc, You may do research into the new Power BI JavaScript API. https://powerbi.microsoft.com/en-us/blog/intro-pbi-js-api/ https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics#print-a-report
- ronnocAdvocate II
v-chuncz-msft cheers for your help you are a living legend.
The js library is simply brilliant but unfortunately I am having trouble setting it up. I cant figure out where to find the access token for my report in powerbi service or in AzureAD? If you could, please shed some more light on the situation.
- divyangmunjaniRegular Visitor
Did you get the solution for your problem? I am in need of that