![](/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.