private void hgrpreportViewer_Load(object sender, EventArgs e) { if (grpname == "Y2.S1.IT.01") { Section5_GroupTimetable timetablegrp = new Section5_GroupTimetable(); hgrpreportViewer.ReportSource = timetablegrp; hgrpreportViewer.Refresh(); } else if (grpname == "Y3.S2.SE.09") { Section5_GroupTimetable_1 timetablegrp = new Section5_GroupTimetable_1(); hgrpreportViewer.ReportSource = timetablegrp; hgrpreportViewer.Refresh(); } else if (grpname == "Y3.S1.SE.08") { Section5_GroupTimetable_2 timetablegrp = new Section5_GroupTimetable_2(); hgrpreportViewer.ReportSource = timetablegrp; hgrpreportViewer.Refresh(); } else if (grpname == "Y2.S1.CS.01") { Section5_GroupTimetable_3 timetablegrp = new Section5_GroupTimetable_3(); hgrpreportViewer.ReportSource = timetablegrp; hgrpreportViewer.Refresh(); } else { MessageBox.Show("No Sessions allocated for the selected Group ID"); this.Dispose(); } }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { Section5_GroupTimetable rpt = new Section5_GroupTimetable(); rpt.Site = this.Site; return(rpt); }