Exemple #1
0
        public frmInventario()
        {
            InitializeComponent();
            LogicaGo         logica = new LogicaGo();
            DataTable        datos  = logica.obtenerProductosAll();
            ReportDataSource rds    = new ReportDataSource("dsProductos", datos);

            this.reportViewer1.LocalReport.DataSources.Clear();
            this.reportViewer1.LocalReport.DataSources.Add(rds);
            this.reportViewer1.LocalReport.Refresh();
            this.reportViewer1.RefreshReport();
        }