public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crpSinhVien rpt = new crpSinhVien(); rpt.Site = this.Site; return(rpt); }
private void btnDongY_Click(object sender, EventArgs e) { if (cmbLop.SelectedValue != null) { xlBaocao.MALOP = cmbLop.SelectedValue.ToString(); crpSinhVien crp = new crpSinhVien(); crp.SetDataSource(xlBaocao.BaoCaoSV()); crystalReportViewer1.ReportSource = crp; crystalReportViewer1.Refresh(); } else { cmbLop.DisplayMember = ""; MessageBox.Show("Không có môn học nào trong khóa này"); } }