我已经在我的MVC C#应用程序中嵌入了power bi online报告并正确呈现了它。此外,我试图将其导出为PDF,但没有办法做到这一点。我尝试过jsPDF和Cavas2html,但没有得到结果。有没有可能使用任何其他工具来做到这一点。
我现在知道它很晚了,但可以尝试打印它:
// Get a reference to the embedded report HTML element
var embedContainer = $('#embedContainer')[0];
// Get a reference to the embedded report.
report = powerbi.get(embedContainer);
// Trigger the print dialog for your browser.
report.print()
.catch(function (errors) {
Log.log(errors);
});
如果有帮助,请告诉我。
截至2019年7月,如果没有hacky解决方案,您无法实现这一目标。从Power BI嵌入打印和导出为pdf / ptt等目前相当有限。
这里有一个以pdf格式导出的功能请求超过400票。如果这是你想要的功能我建议投票:qazxsw poi