简体   繁体   English

在ASP.NET ReportViewer控件中使用远程SSRS数据源运行LocalReport

[英]Running a LocalReport with a remote SSRS DataSource in ASP.NET ReportViewer control

I'll try to describe what exactly I am doing: I am trying to incorporate a ReportViewer control into my ASP.NET page, that would enable the user to view pre-defined and useruploaded, RDL reports, set parameters and finally receive the output (both on-screen and in a file). 我将尝试描述自己到底在做什么:我试图将ReportViewer控件合并到我的ASP.NET页中,这将使用户能够查看预定义和用户上传的RDL报告,设置参数并最终接收输出(在屏幕上和在文件中)。

So we have an SSRS on a remote server, with shared datasources defined there. 因此,我们在远程服务器上有一个SSRS,并在其中定义了共享数据源。 The remote server also has the OLAP cube on it, that stores the data for the datasource. 远程服务器上还具有OLAP多维数据集 ,用于存储数据源的数据。

Question: What puzzles me is how do you provide the connection between a local report and the remote datasource to let the report execute it's mdx query ? 问题:让我感到困惑的是,您如何提供本地报表和远程数据源之间的连接,以使报表执行其mdx查询

So far I was only able to display LocalReport with local datasource, and wasn't able to DISPLAY the ServerReport at all (just receiving the resulting bytes from the server). 到目前为止,我只能够显示具有本地数据源的LocalReport,并且根本无法显示ServerReport(只是从服务器接收结果字节)。

Thanks. 谢谢。

  1. You can solve your problem if you will deploy LocalReports to that Remote Server in some separate sub-folder. 如果将LocalReports部署到该远程服务器的某个单独的子文件夹中,则可以解决您的问题。 Then you will be able to use Shared Datasource. 然后,您将可以使用共享数据源。

  2. ReportViewer has ProcessingMode property Local or Remote. ReportViewer具有ProcessingMode属性“本地”或“远程”。 It could be used for both. 它可以同时用于两者。 You can add 2 instances of ReportViewer on the page one for Local and one for Remote reports. 您可以在页面上添加2个ReportViewer实例,一个用于本地,一个用于远程报告。

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

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