Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ronnoc
Advocate II
Advocate II

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.

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@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
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
divyangmunjani
Regular Visitor

Did you get the solution for your problem? I am in need of that

v-chuncz-msft
Community Support
Community Support

@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
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@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. 

 

http://community.powerbi.com/t5/Developer/Setting-up-javascript-api-the-perpetual-mystery-of-access-...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.