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”;
ReportViewer2.ServerReport.SetParameters(parm);
ReportViewer2.ServerReport.Refresh();
}
Advertisements