Forum Discussion
Anonymous
8 years agoNot applicable
Save visual from Page.GetVisuals as image
I am using the PowerBI JS API to get reports and visuals. So far using the function below gives the title of the visuals and the visuals in svg tags. report.getPages() .then(function (pages) { // R...
v-jiascu-msft
8 years agoMicrosoft Employee
Hi Anonymous,
This function just gives us a text list of all the visuals. Since the visuals aren't ordinary images, the workaround I can think of could be loading these viusals one by one and print them out. Please refer to
1. using-html5-canvas-javascript-to-take-in-browser-screenshots/
2. https://stackoverflow.com/questions/9616426/javascript-print-iframe-contents-only/9616706
Best Regards,
Dale