Exemple #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReportInDanhSachSinhVienTheoLop rpt = new ReportInDanhSachSinhVienTheoLop();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void btnXem_Click(object sender, EventArgs e)
        {
            ReportInDanhSachSinhVienTheoLop obj = new ReportInDanhSachSinhVienTheoLop();

            string lenh = "EXEC sp_INDANHSACHSINHVIENTHEOLOP '" + cmbLop.SelectedValue.ToString().Trim() + "'";

            DataTable dataTable = Program.ExecSqlDataTable(lenh);

            obj.SetDataSource(dataTable);
            obj.SetParameterValue("TENLOP", cmbLop.Text);

            crvDanhSachSinhVien.ReportSource = obj;
        }