打印/生成嵌入式 power bi 报告的 PDF

2022-01-10 00:00:00 powerbi javascript

我已在我的网站中嵌入了一份 power bi 报告.我想在其中实现保存到 pdf 或打印功能.有没有办法实现这些功能?

I have embedded a power bi report into my website. I want to implement save to pdf or print feature in it. Is there any way to implement these features?

推荐答案

我的建议是使用 Power BI API 嵌入报表,然后使用 javascript 启动打印对话框.window.print();

My suggestion is to use the Power BI API to embed your report and then use javascript to launch the print dialog. window.print();

Power BI 内没有开箱即用的按钮可将报表按原样导出为 PDF.

Out of the box there is no button inside Power BI that export your report as a PDF as is.

在 Power BI 服务上,您可以在 PowerPoint 中导出报表,但导出的数据是报表的单个静态 jpg,例如无法进行交互.

On the Power BI Service, you have the possibility to export your report in PowerPoint, but the exported data are single static jpg of your report, e.g. no interaction is possible.

在 GitHub 上,您可以找到如何通过 javascript 与 PowerBI 交互嵌入基础知识

Here on GitHub you can find how to interact with PowerBI via javascript Embedding Basics

希望有帮助!

相关文章