public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { Section5_RoomTimetable_2 rpt = new Section5_RoomTimetable_2(); rpt.Site = this.Site; return(rpt); }
private void Section5_ViewRoomTimetable_Load(object sender, EventArgs e) { if (roomno == "A502") { Section5_RoomTimetable timetableroom = new Section5_RoomTimetable(); hroomreportViewer.ReportSource = timetableroom; hroomreportViewer.Refresh(); } else if (roomno == "A509") { Section5_RoomTimetable_1 timetableroom = new Section5_RoomTimetable_1(); hroomreportViewer.ReportSource = timetableroom; hroomreportViewer.Refresh(); } else if (roomno == "B303") { Section5_RoomTimetable_2 timetableroom = new Section5_RoomTimetable_2(); hroomreportViewer.ReportSource = timetableroom; hroomreportViewer.Refresh(); } else { MessageBox.Show("No Sessions allocated for the selected Room"); this.Dispose(); } }