Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

How to pass query string parameter to ssrs reports from report viewer control

$
0
0

In my 2012 asp.net web form application, one of the aspx pages that contains asp.net report viewer control is codedin its Page_Load event handler as below to call remote ssrs (SQL Server 2012) reports using property ReportPath.

I have 2 questions:

Question 1: If I want to pass one more query string via property ReportPath, for example deviceId=1234, how can I do so?

protected void Page_Load(object sender, EventArgs e)        {                ....                ReportViewer1.ServerReport.ReportPath = _myReportPart; // I want to pass more query string here like deviceId=1234. How can I do so?                ReportViewer1.ServerReport.ReportServerUrl = new Uri(myReportServerUrl);            }        }

Question 2: on remote ssrs rdl reports, how can reports consume/extract that extra query string?

Thank you.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>