示例#1
0
        public FormReporteFacturas()
        {
            InitializeComponent();

            var _facturasBL   = new FacturaBL();
            var bindingSource = new BindingSource();

            bindingSource.DataSource = _facturasBL.ObtenerFacturas();

            var reporte = new ReporteFacturas();

            reporte.SetDataSource(bindingSource);

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