コード例 #1
0
        private void CargarReporteCompleto()
        {
            DataTable tabla = new DataTable();

            tabla = AD_Recibos.ObtenerRecibos();

            ReportDataSource ds = new ReportDataSource("DatosRecibos", tabla);

            reporteRecibos.LocalReport.DataSources.Clear();
            reporteRecibos.LocalReport.DataSources.Add(ds);
            this.reporteRecibos.RefreshReport();
        }
コード例 #2
0
 private void CargarGrillaRecibos()
 {
     try
     {
         grillaRecibos.DataSource = AD_Recibos.ObtenerRecibos();
     }
     catch (Exception)
     {
         MessageBox.Show("Error al cargar la grilla de recibos!");
         throw;
     }
 }