public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { PrintExam rpt = new PrintExam(); rpt.Site = this.Site; return(rpt); }
private void btn_FindExam_Click(object sender, EventArgs e) { if (int.TryParse(txt_ExamNo.Text, out _)) { PrintExam r = new PrintExam(); r.SetParameterValue("@examNo", txt_ExamNo.Text); crystalReportViewer.ReportSource = r; } }