示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReporteFactura rpt = new ReporteFactura();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        public FormReporteFactura()
        {
            InitializeComponent();
            var _facturaBL    = new FacturaBL();
            var bindingSource = new BindingSource();

            bindingSource.DataSource = _facturaBL.ObtenerFacturas();

            var reporte = new ReporteFactura();

            reporte.SetDataSource(bindingSource);

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