Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Display SSRS Report based on windows application parameters.

$
0
0

Hi,

 I need to display report in winform based on winform parameters.

I'm ve in SSRS report via URL, I deployed in Reportviewer in winform . Now I need to display that report based on my win form parameters i.e., I'm ve in textbox and button.

I ve to enter related item in textbox and when I press the button the report should be viewed based on this values. Remember I'm calling report via URL.

How I'll do this... Plzz help me out.....

code :

   in btn click event :

            rptViewer.ServerReport.ReportServerUrl = new Uri(@"http://localhost/ReportServer");
            rptViewer.ServerReport.ReportPath = "/Custom Report/Custom Tempalte1";
            rptViewer.ProcessingMode = ProcessingMode.Remote;
            ReportParameter[] reportParameterCollection = new ReportParameter[1];     
            reportParameterCollection[0] = new ReportParameter("EmployeeGroup", textBox1.Text);
            this.rptViewer.ServerReport.SetParameters(reportParameterCollection);
            rptViewer.ShowParameterPrompts = false;
            rptViewer.ShowPromptAreaButton = false;
            rptViewer.ServerReport.Refresh();

In report designer  i am using 'EmployeeGroup' same parameter in query also.

Thanks & Regards

P.Narayanan.


Viewing all articles
Browse latest Browse all 1418

Trending Articles



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