简体   繁体   English

如何使用来自 PowerBI 报表服务器的 URL 访问将 SSRS 报表导出为 PDF?

[英]How to export SSRS report to PDF using URL Access from PowerBI Report Server?

Assume I have a PowerBI report server at the following version: PowerBI Report Server Version: 1.5.7074.36177 (May 2019)假设我有以下版本的PowerBI 报表服务器 PowerBI 报表服务器版本:1.5.7074.36177(2019 年 5 月)

Assume I have a report at a URL like the following that will run in a browser with no params: https://<HOST>/<VIR_DIR>/report/<MY_REPORTS>/Report%20On%20Stuff假设我在如下 URL 上有一个报告,它将在没有参数的浏览器中运行: https://<HOST>/<VIR_DIR>/report/<MY_REPORTS>/Report%20On%20Stuff

I'd like to use URL Access as a means to export a report to PDF rather than opening in a browser.我想使用URL Access作为将报告导出为 PDF 而不是在浏览器中打开的一种方式。

The following URL results in a redirect to the top-level reports folder with no PDF exported: https://<HOST>/<VIR_DIR>?/report/<MY_REPORTS>/Report%20On%20Stuff&rs:Format=PDF以下 URL 导致重定向到顶级报告文件夹,但没有导出 PDF: https://<HOST>/<VIR_DIR>?/report/<MY_REPORTS>/Report%20On%20Stuff&rs:Format=PDF

I also tried this variation of the URL, which also results in a redirect to the top-level reports folder with no PDF exported: https://<HOST>/<VIR_DIR>/report?/<MY_REPORTS>/Report%20On%20Stuff&rs:Format=PDF我还尝试了 URL 的这种变体,这也导致重定向到没有导出 PDF 的顶级报告文件夹: https://<HOST>/<VIR_DIR>/report?/<MY_REPORTS>/Report%20On%20Stuff&rs:Format=PDF

And this variation of the URL, which redirects to what appears to be a directory listing of reports in the <MY_REPORTS> folder (again with no PDF): https://<HOST>/<VIR_DIR>/report/<MY_REPORTS>?/Report%20On%20Stuff&rs:Format=PDF以及 URL 的这种变体,它重定向到 <MY_REPORTS> 文件夹中的报告目录列表(同样没有 PDF): https://<HOST>/<VIR_DIR>/report/<MY_REPORTS>?/Report%20On%20Stuff&rs:Format=PDF

您可能想尝试可用的替代 URL 语法,因为您的示例都没有采用这种格式,而且它是我一直用于 SSRS 导出的格式:

https://servername/ReportServer_THESQLINSTANCE/Pages/ReportViewer.aspx?%2freportfolder%2freport+name+with+spaces&rs:Format=PDF

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

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