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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void RP_NHCN_Load(object sender, EventArgs e)
        {
            List <SP_CHITIETPHIEUNHAPCHINHANH_Result> tmp = db.SP_CHITIETPHIEUNHAPCHINHANH(sophieu).ToList();
            BindingSource bs = new BindingSource();

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

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