問題描述
我已在我的網站中嵌入了一份 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
希望有幫助!
這篇關于打印/生成嵌入式 power bi 報告的 PDF的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!