Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReporteFactura rpt = new ReporteFactura();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        public FormReporteFcatura()
        {
            InitializeComponent();

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

            bindingSource.DataSource = _facturasBL.Obtenerfacturas();

            var reporte = new ReporteFactura();

            reporte.SetDataSource(bindingSource);

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