private void Report_Load(object sender, EventArgs e) { if (str == "Student") { StudentReport sr = new StudentReport(); sr.SetDataSource(dss); crystalReportViewer1.ReportSource = sr; } else if (str == "Staff") { StaffReport sr2 = new StaffReport(); sr2.SetDataSource(dss); crystalReportViewer1.ReportSource = sr2; } else if (str == "User") { UserReport sr2 = new UserReport(); sr2.SetDataSource(dss); crystalReportViewer1.ReportSource = sr2; } else if (str == "Class") { ClassReport cr = new ClassReport(); cr.SetDataSource(dss); crystalReportViewer1.ReportSource = cr; } }