private void report() { if (!string.IsNullOrEmpty(Request.QueryString["pId"]) && int.TryParse(Request.QueryString["pId"], out checkInt)) { a.UserPrint(lbluser.Text, checkInt); a.Updateprint(checkInt); DataTable all = a.checkstatusMaintenance(checkInt); if (all.Rows.Count > 0) { string path = all.Rows[0]["signature"].ToString(); CrystalDecisions.CrystalReports.Engine.ReportClass rd = new CrystalDecisions.CrystalReports.Engine.ReportClass(); rd.FileName = Server.MapPath("~/Reports/RecvUnit.rpt"); rd.RecordSelectionFormula = "{Unit_Recv.ContractNumber} = " + checkInt; rd.SetParameterValue("imgurl", Server.MapPath(@"~/CanvasImages/"+ path)); CrystalReportViewer2.ReportSource = rd; CrystalReportViewer2.RefreshReport(); CrystalReportViewer2.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)