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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Exporting Power BI embedded report or visual to PDF using Node JS

i got power bi report embedded to webpage. we received requirement from client to export/download single or multiple visuals from this embedded report to either pdf or png.

I am looking for any node js solution to this problem. As, ideally i have to bind visual downloading with a button on this web page from where user can download report/visual.

i have found this solution but its in c# 
https://learn.microsoft.com/en-us/power-bi/developer/embedded/export-to

further, there is no proper procedure written for binding visual export/visual with any button

3 REPLIES 3

its deprecated i guess

as export to file API is a rest API so can it be integrated with other languages also ?
or for now its just for C# as mentioned in sample code?

Anonymous
Not applicable

Hi @husnainnourose,

>>or for now its just for C# as mentioned in sample code?

Obviously, the Rest API should not limit the usage of programming languages. I check on the npm and find the power bi client package, you can try it if helps:

powerbi-client - npm (npmjs.com)

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

HI @husnainnourose,

You can take a look at the following blog about node js sdk with power bi embed if it helps with your requirement:

Power BI Embedded SDK for Node JS | Microsoft Power BI Blog | Microsoft Power BI

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.