protected void Page_Load(object sender, EventArgs e) { ConnectionInfo con = new ConnectionInfo(); con.ServerName = "HHDVAQUAS"; con.DatabaseName = "Current"; con.UserID = "sa"; con.Password = "samesame"; CrystalReportViewer1.ParameterFieldInfo.Clear(); CrystalReportViewer1.ReportSource = Server.MapPath("Report/RptGpsCustomerList.rpt"); ParameterFields parameter = CrystalReportViewer1.ParameterFieldInfo; ParameterField strid = new ParameterField(); strid.Name = "@strIDs"; ParameterDiscreteValue par_custid_value = new ParameterDiscreteValue(); par_custid_value.Value = Session["stID"].ToString(); strid.CurrentValues.Add(par_custid_value); parameter.Add(strid); ParameterField intFilterType = new ParameterField(); intFilterType.Name = "@intFilterType"; ParameterDiscreteValue par_intFilterType_value = new ParameterDiscreteValue(); par_intFilterType_value.Value = Convert.ToInt16(Session["ReportBy"].ToString()); intFilterType.CurrentValues.Add(par_intFilterType_value); parameter.Add(intFilterType); foreach (TableLogOnInfo tlf in CrystalReportViewer1.LogOnInfo) { tlf.ConnectionInfo = con; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)