Hi All
I created a report in Crystal Report and Bind with a storedprocedure which needs to parameter to executes. I want to pass it from Page_Load event of webpage to run and print report. Code is as bellow
Following code not worked and prompting pass for parameters before executing report
----------------------------------------------------------------------------------------------------------------
ReportDocument rptDoc = new ReportDocument();
strReportPath = Server.MapPath(Session["REPORTNAME"].ToString());
rptDoc.Load(strReportPath);
rptDoc.SetParameterValue(0, Request.QueryString["Val1"].ToString());
rptDoc.SetParameterValue(1, Request.QueryString["Val2"].ToString());
rptDoc.Refresh();
ConnectionInfo dbConnInfo = new ConnectionInfo();
  ...
Go to the complete details ...