Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

have one winform to build any ssrs form with dynamic number of parameters

$
0
0

Hi,
I am trying to build a winform so that I can pass to it the parameters of any ssrs reports.
At present, I have one form which accepts two parameters to generate one specific ssrs report.
Can there be one form so that I can pass to it the parameters of any ssrs reports so that it generates the report.
This way, I do not have to have one winform for each ssrs report.
Any suggestions please?
Thanks

this.reportViewer1.ServerReport.ReportServerUrl = new Uri(@"http://" + strMachineName + "/ReportServer");
this.reportViewer1.ServerReport.ReportPath = _strReportFolder + ReportName;

Microsoft.Reporting.WinForms.ReportParameter[] RptParameter = new Microsoft.Reporting.WinForms.ReportParameter[2];
RptParameter[0] = new Microsoft.Reporting.WinForms.ReportParameter("Parameter0", parameterValue0);
RptParameter[1] = new Microsoft.Reporting.WinForms.ReportParameter("Parameter1", parameterValue1);
               
this.reportViewer1.ServerReport.SetParameters(RptParameter);
this.reportViewer1.RefreshReport();


Viewing all articles
Browse latest Browse all 12583

Trending Articles



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