Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CTHD_RP rpt = new CTHD_RP();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void RP_HD_Load(object sender, EventArgs e)
        {
            List <SP_CHITIETHOADON_Result> tmp = db.SP_CHITIETHOADON(SoHD).ToList();
            BindingSource bs = new BindingSource();

            bs.DataSource = tmp;
            CTHD_RP rp = new CTHD_RP();

            rp.SetDataSource(bs);
            crv.ReportSource = rp;
            crv.RefreshReport();
        }