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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void formRP_DSSV_Load(object sender, EventArgs e)
        {
            DataTable dt      = new DataTable();
            String    strLenh = "EXEC sp_InDanhSachSinhVien N'" + maLop + "'";

            //MessageBox.Show(strLenh);
            dt = Program.ExecSqlDataTable(strLenh);
            rp_DSSV rp = new rp_DSSV();

            rp.SetDataSource(dt);
            rp.SetParameterValue("tenLop", tenLop);
            crystalReportViewer1.ReportSource = rp;
        }