예제 #1
0
        public void CargarDatos(TratamientoBL tratamientosBL)
        {
            var bindingSource = new BindingSource();

            bindingSource.DataSource = tratamientosBL.ListadeTratamientos;

            var reporte = new ReportedeTratamientos();

            reporte.SetDataSource(bindingSource);

            crystalReportViewer1.ReportSource = reporte;

            crystalReportViewer1.RefreshReport();
        }