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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            // var _facturaBL = new FacturaBL();
            var fechainicial = dateTimePicker1.Value;
            var fechafinal   = dateTimePicker2.Value;

            var bindingSource = new BindingSource();

            bindingSource.DataSource = _facturaBL.ObtenerFacturas(fechainicial, fechafinal);

            var reporte = new ReporteFactura();

            reporte.SetDataSource(bindingSource);


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