ASP.NET C# ReportViewer Parameter

using Microsoft.Reporting.WebForms;

protected void Button1_Click(object sender, EventArgs e)
ReportParameter[] parm = new ReportParameter[2];
parm[0] = new ReportParameter(“Tutor”, TextBox1.Text);
parm[1] = new ReportParameter(“RefDate”, txtStartDate.Text);
//ReportViewer1.ShowCredentialPrompts = false;
//ReportViewer1.ServerReport.ReportServerCredentials = new ReportCredentials(“Reportfolder Name”, “Password of the folder”, “”);

ReportViewer2.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
ReportViewer2.ServerReport.ReportServerUrl = new System.Uri(“http://ms10-mmi:8080/ReportServer”);
ReportViewer2.ServerReport.ReportPath = “/Report/TutorGroupLists”;



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s