public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { NHTS_RP rpt = new NHTS_RP(); rpt.Site = this.Site; return(rpt); }
private void RP_NHTS_Load(object sender, EventArgs e) { List <SP_CHITIETPHIEUNHAPTRUSO_Result> tmp = db.SP_CHITIETPHIEUNHAPTRUSO(sophieu).ToList(); BindingSource bs = new BindingSource(); bs.DataSource = tmp; NHTS_RP rp = new NHTS_RP(); rp.SetDataSource(bs); crv.ReportSource = rp; crv.RefreshReport(); }