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

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.