Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReporteProveedores rpt = new ReporteProveedores();

            rpt.Site = this.Site;
            return(rpt);
        }
        public FormReporteProveedores()
        {
            InitializeComponent();
            var _proveedoresBL = new ProveedoresBL();
            var bindingSource  = new BindingSource();

            bindingSource.DataSource = _proveedoresBL.ObtenerProveedor();

            var reporte = new ReporteProveedores();

            reporte.SetDataSource(bindingSource);

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