cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ashu2021 Helper I
Helper I

Download in PDF

Hi All

 

Microsoft has released the option to download report in PDF in PowerBI Embedded. However, they has provided only C# code. ANd, for my project, I have required the Java Script code. Can anyone suggest me, how I can get the JS code. Or I can translate C# code into Java Script.

 

3 REPLIES 3
Super User II
Super User II

Re: Download in PDF

Hi @Ashu2021 ,

 

Basically you have to use the exporttofileingroup REST API

 

https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup

 

The C# Code/Dotnet SDK is just a abstraction layer which internally uses the same export api. So you can use the raw api in your javascirpt rather than a C# code/any sdk







Did my reply helpful to you ? Please give Kudos

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Ashu2021 Helper I
Helper I

Re: Download in PDF

@Jayendran

 

Thanks for your reponse. It's great help for me. It will good, if you can share some example file for the same

 

Kind Regards

Ashwani

Super User II
Super User II

Re: Download in PDF

Hi @Ashu2021 ,

 

I'm not much into javascript, however I can give you some links handy

 

https://stackoverflow.com/questions/47194412/node-js-app-integration-with-power-bi-rest-api

 

With the above link you just need to replace the exisiting API with the export API.







Did my reply helpful to you ? Please give Kudos

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors