public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { PatientReport rpt = new PatientReport(); rpt.Site = this.Site; return(rpt); }
private void populateReport(string UID) { PatientReport report = new PatientReport(); using (BDISAppMedicalConditions db = new BDISAppMedicalConditions()) { var data = from patient in db.MedicalConditions where patient.Patient_UID == UID select patient; report.SetDataSource(data.ToList()); reportViewer.ReportSource = report; reportViewer.RefreshReport(); } }