![](/img/trans.png)
[英]Can we export PDF and PPT of an embedded Power BI report by calling an the Export feature of the Power BI Service/Workspace
[英]report export in PDF format in Power BI Embedded
假設您在報告頁面中有此按鈕,您可以為事件“buttonClicked”設置事件處理程序。 您可以在事件處理程序 function 中獲取所有事件詳細信息作為參數。 'buttonClicked' 事件處理程序文檔
...
report.on("buttonClicked", (event) => {
if (event.detail.id === "YOUR_BUTTON_ID") {
// Add your logic to send a request to your backend to consume the Power BI REST APIs
}
});
您現在可以使用報告導出 API。
在此處查找代碼示例
注意導出報告到 PDF 的限制和注意事項
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.