public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ReportPhieuDiemSinhVien rpt = new ReportPhieuDiemSinhVien(); rpt.Site = this.Site; return(rpt); }
private void btnXem_Click(object sender, EventArgs e) { ReportPhieuDiemSinhVien obj = new ReportPhieuDiemSinhVien(); string lenh = "EXEC sp_INPHIEUDIEM '" + cmbMaSinhVien.Text + "'"; DataTable dataTable = Program.ExecSqlDataTable(lenh); obj.SetDataSource(dataTable); obj.SetParameterValue("TENLOP", cmbLop.Text); obj.SetParameterValue("MASV", cmbMaSinhVien.Text); crvPhieuDiemSinhVien.ReportSource = obj; }