Example #1
0
 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;
     }
 }
Example #2
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     RetestList rpt = new RetestList();
     rpt.Site = this.Site;
     return rpt;
 }