public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReporteFacturas rpt = new ReporteFacturas();

            rpt.Site = this.Site;
            return(rpt);
        }
        public FormReporteFacturas()
        {
            InitializeComponent();


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

            bindingSource.DataSource = _facturasBL.ObtenerFacturas();

            var reporte = new ReporteFacturas();

            reporte.SetDataSource(bindingSource);

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