Exemplo n.º 1
0
 public void cargarReporte()
 {
     corte.Connection = con;
     corte.Fill(ds.Corte, dtp.Value);
     reporte.SetDataSource(ds);
     crv.ReportSource = reporte;
 }
Exemplo n.º 2
0
        public void cargarReporte()
        {
            corte.Connection = con;
            corte.Fill(ds.Corte, dtp.Value);

            switch (cb_tipo.SelectedIndex)
            {
            case 0:    //Texto
                reporte = new crCorte();
                reporte.SetDataSource(ds);
                crv.ReportSource = reporte;
                break;

            case 1:    //Grafica
                reporteg = new crCorteG();
                reporteg.SetDataSource(ds);
                crv.ReportSource = reporteg;
                break;

            case 2:    //Ambos
                reportea = new crCorteA();
                reportea.SetDataSource(ds);
                crv.ReportSource = reportea;
                break;
            }
        }