問題描述
我已在我的網(wǎng)站中嵌入了一份 power bi 報(bào)告.我想在其中實(shí)現(xiàn)保存到 pdf 或打印功能.有沒有辦法實(shí)現(xiàn)這些功能?
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 嵌入報(bào)表,然后使用 javascript 啟動(dòng)打印對(duì)話框.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 內(nèi)沒有開箱即用的按鈕可將報(bào)表按原樣導(dǎo)出為 PDF.
Out of the box there is no button inside Power BI that export your report as a PDF as is.
在 Power BI 服務(wù)上,您可以在 PowerPoint 中導(dǎo)出報(bào)表,但導(dǎo)出的數(shù)據(jù)是報(bào)表的單個(gè)靜態(tài) jpg,例如無法進(jìn)行交互.
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 交互嵌入基礎(chǔ)知識(shí)
Here on GitHub you can find how to interact with PowerBI via javascript Embedding Basics
希望有幫助!
這篇關(guān)于打印/生成嵌入式 power bi 報(bào)告的 PDF的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!