Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReportedeSangre rpt = new ReportedeSangre();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        public void CargarDatos(TipodeSangreBL tipodeSangreBL)
        {
            var bindingSource = new BindingSource();

            bindingSource.DataSource =
                from s in tipodeSangreBL.ListadeSangre
                select new
            {
                Id          = s.Id,
                Descripcion = s.Descripcion,
                Precio      = s.Precio,
                Existencia  = s.Existencia
            };

            var reporte = new ReportedeSangre();

            reporte.SetDataSource(bindingSource);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }