protected override void OnLoad(System.EventArgs e) { if (ReportType == "ManagerList") { ManagerCallSheet report = new ManagerCallSheet(); CrystalReportViewer1.ReportSource = report; } if (ReportType == "MunicipalityList") { Municipalities report = new Municipalities(); CrystalReportViewer1.ReportSource = report; } if (ReportType == "RetestList") { RetestList report = new RetestList(); CrystalReportViewer1.ReportSource = report; } if (ReportType == "RetestLetters") { RetestLetters report = new RetestLetters(); CrystalReportViewer1.ReportSource = report; } }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { RetestLetters rpt = new RetestLetters(); rpt.Site = this.Site; return rpt; }