Exemple #1
0
        private void rptMovimientoSucursal_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'PRESTODataSet.MovimientoSucural' table. You can move, or remove it, as needed.
            this.MovimientoSucuralTableAdapter.Fill(this.PRESTODataSet.MovimientoSucural, Id, FecInicio, FecFin);
            reportViewer1.LocalReport.SetParameters(new Microsoft.Reporting.WinForms.ReportParameter("rptSucursal", Sucursal));
            reportViewer1.LocalReport.SetParameters(new Microsoft.Reporting.WinForms.ReportParameter("rptFechaInicio", FecInicio.ToShortDateString()));
            reportViewer1.LocalReport.SetParameters(new Microsoft.Reporting.WinForms.ReportParameter("rptFechaFin", FecFin.ToShortDateString()));

            //this.reportViewer1.RefreshReport();
            this.reportViewer1.RefreshReport();
        }
Exemple #2
0
 private void rptMovimientoIngreso_Load(object sender, EventArgs e)
 {
     this.IngresosTableAdapter.Fill(this.PRESTODataSet.Ingresos, FecInicio, FecFin);
     reportViewer1.LocalReport.SetParameters(new Microsoft.Reporting.WinForms.ReportParameter("rptFechaInicio", FecInicio.ToShortDateString()));
     reportViewer1.LocalReport.SetParameters(new Microsoft.Reporting.WinForms.ReportParameter("rptFechaFin", FecFin.ToShortDateString()));
     this.reportViewer1.RefreshReport();
 }