如何在ASP.NET MVC中使用ReportViewer控件显示Power BI Report Server报告。

huangapple go评论50阅读模式
英文:

How to display Power BI Report Server reports in ReportViewer control in ASP.NET MVC

问题

1: ReportViewer 控件是否支持 PowerBI 报告?
2: 如果不支持,是否有其他方法在 MVC 应用程序中显示来自本地 Power BI 服务器的 PowerBI 报告?
3: 如果必须使用 iframe,是否有一种无声地将凭据传递给 iframe 的 src 标签的方法,而不是要求用户提供它?

英文:

We have an ASP.NET MVC application and we are already using SSRS reports in it. These SSRS reports are displayed to end users using the ReportViewer control.

We just started using PowerBI reports. These reports are deployed using PowerBI server.

Can we display PowerBI reports (and dashboards) from PowerBI report server in a ReportViewer control? If yes - how?

Please note that we do not want to display reports from Power BI service (and hence Azure hosting solution is not applicable). Rather we need to show them from PowerBI Report Server.

We also tried using iframe, but then it asks for credentials when the report is opened in iframe, which we don't want to display to the end user.

So there are questions below:
1: Does reportviewer control supports PowerBI reports ?
2: If not, is there any alternative to display PowerBI reports from MVC application (using on premise Power BI server)?
3: If we have to use Iframe, then is there any way to pass credentials to src tag in iframe, silently, instead of asking it to user ?

答案1

得分: 1

回答我的问题。

我们与微软团队进行了讨论,截止到2023年7月,他们没有任何可以在独立服务器上显示Power BI报告在MVC应用程序中的控制权。

因此,似乎我们唯一的选择(使用独立的Power BI服务器)是在iframe中显示报告。但是,在第一次打开页面时,它会要求输入凭据。

英文:

Answering to my own question.

We had a discussions with Microsoft team, and as of today on July 2023, they do not have any such control, where we can display Power BI reports from standalone server, into MVC application.

So it appears that we are left with only option (with stand alone Power BI server) is to display reports in iframe. However on opening the page first time, it will ask for the credentials.

huangapple
  • 本文由 发表于 2023年5月10日 14:59:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76215697.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定