public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            GetStudentInfoByDepartmentNumber rpt = new GetStudentInfoByDepartmentNumber();

            rpt.Site = this.Site;
            return(rpt);
        }
 private void FindStudents_Click(object sender, EventArgs e)
 {
     if (int.TryParse(DepartmentNumber.Text, out _))
     {
         GetStudentInfoByDepartmentNumber r = new GetStudentInfoByDepartmentNumber();
         r.SetParameterValue("@dept_no", DepartmentNumber.Text);
         crystalReportViewer.ReportSource = r;
     }
 }