繁体   English   中英

以编程方式下载 Power BI 仪表板

[英]Download power BI dashboard programmatically

我正在尝试使用 HTTP 连接管理器在 SSIS 中使用脚本任务编写 VB 代码以将 Power BI 仪表板从 PowerBI 服务器导出到本地路径。 正在生成一个 5KB 的文件,但无法打开它。 谁能帮我解决这个问题。

Dim HttpCon As ConnectionManager = Dts.Connections("ReportServer")
    Dim ClientCon As HttpClientConnection = New HttpClientConnection(HttpCon.AcquireConnection(Nothing))
    Dim ReportFileName As String = "C:\localpath\Warranty.pdf"
    ClientCon.ServerURL = "http://powerbidev.abc.com/Reports/powerbi/FolderName/&rs:Command=Render&rs:Format=PDF&rc:Toolbar=False"
    ClientCon.DownloadFile(ReportFileName, True)

您可以使用Power BI API (链接到您需要的请求)来完成它。 首先应该有一个程序化的认证,但这是一个全新的话题。 此外,还有nu-get 包可以执行此操作,但是在将包部署到服务器时,向脚本任务添加额外的 ddl 时会遇到问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM