Print and/or export to PDF from PowerBI Embedded Report
Gentemen, we asked out partners about this in early 2017. The answer was end of the year or maybe first quarter for the export to pdf feature. We only have one basic workaroud by using window.print(), and insturcting our enterprise users to then print to pdf, which requires clicks and local pdf executables. It isn't a solution we want to present.
Does anyone have any news or an update form the engineering team? Can someone that monitors this board please respond and/or reach out to Microsoft engineering team and ask for an update and reply here? It is becoming a moderate to serious concern for a customer of ours planning significant launches in the near future.
Nimrod from the PowerBI team seems to be active on other PowerBI Embedded issues. Maybe reach out to him?
I am running embedded powerbi in puppeteer in aws lambda, but I am getting hung up on knowing when the report is done being rendered. How do you wait for the report to finish, so you know its time to create the PDF (or whatever). Currently I am sleeping, but I am trying to find a better solution to that. I did try to hook into the "rendered" event, but I can't seem to get that to fire.
I also did hook up to the public preview of this feature, but the restrictions on it are far too great to be viable.
Hope the following helps, it's a code snippet of the funtion that I used to embed the report. Note it's not code complete nor would I suggest it's production ready! In essence all it does is wrap up the "embed" call in a promise and only then create the pdf.
Note: thee is a 'wait' in the code - I don't think I hooked up to the render with my prototype; just assumed that the API woudl render in less than 5secs. I know we did change this to something more robust, but I dont have access to the codebase for it as I no longer work on the project.