private void fillReport() { ReportDocument r=new ReportDocument(); Session["GetYear"] = null; if (!string.IsNullOrEmpty(Request.QueryString["pId"]) && int.TryParse(Request.QueryString["pId"], out checkInt)) { CrystalReportViewer1.Visible = true; CrystalDecisions.CrystalReports.Engine.ReportClass rd = new CrystalDecisions.CrystalReports.Engine.ReportClass(); rd.FileName = Server.MapPath("~/Reports/CustomerInfo.rpt"); rd.RecordSelectionFormula = "{Maintenance.Id_Number} = " + checkInt; a.Updateprint(checkInt); CrystalReportViewer1.ReportSource = rd; Session["rpt"] = rd;
rd.RecordSelectionFormula = "{Maintenance.Id_Number} = " + checkInt.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)