string quoteid = Session["Quote ID"].ToString(); ReportDocument doc = new ReportDocument(); ParameterDiscreteValue paramvalue = new ParameterDiscreteValue(); ParameterValues paramvals = new ParameterValues(); doc.Load(Server.MapPath("QuoteCrystalReport.rpt"), CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy); paramvalue.Value = quoteid; paramvals.Add(paramvalue); CrystalReportViewer1.ParameterFieldInfo["@Quote_ID"].CurrentValues.Add(paramvalue); doc.DataDefinition.ParameterFields[0].ApplyCurrentValues(paramvals); doc.SetDataSource(ds); // CrystalReportSource1.ReportDocument.SetParameterValue(0, Convert.ToInt32(Request.QueryString["quoteid"])); doc.SetParameterValue(0, Convert.ToInt32(Request.QueryString["quoteid"])); //doc.SetParameterValue(1, Request.QueryString["quoteid"]); CrystalReportViewer1.ReportSource = doc; CrystalReportViewer1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)