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

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        public FormReporteFacturas()
        {
            InitializeComponent();


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

            bindingSource.DataSource = _facturaBL.ObtenerFacturas();


            var reporte = new CrystalReporteFactura();

            reporte.SetDataSource(bindingSource);


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