public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crSolvenciaT rpt = new crSolvenciaT(); rpt.Site = this.Site; return(rpt); }
public void cargarReporte() { MySqlDataAdapter adapter; fechaIni = dtp.Value.Year.ToString() + "/" + dtp.Value.Month.ToString() + "/" + dtp.Value.Day.ToString(); fechaFin = dtp2.Value.Year.ToString() + "/" + dtp2.Value.Month.ToString() + "/" + dtp2.Value.Day.ToString(); try { crearConsulta(); ds = new dataSet_inventarios(); adapter = new MySqlDataAdapter(query, con); adapter.Fill(ds, "Solvencia"); switch (cb_tipo.SelectedIndex) { case 0: //Texto reportetxt = new crSolvenciaT(); reportetxt.SetDataSource(ds); crv.ReportSource = reportetxt; break; case 1: //Grafica reporteg = new crSolvenciaG(); reporteg.SetDataSource(ds); crv.ReportSource = reporteg; break; case 2: //Ambos reporte = new crSolvenciaA(); reporte.SetDataSource(ds); crv.ReportSource = reporte; break; } } catch (FormatException fex) { MessageBox.Show(fex.Message); } }
public void cargarReporte() { MySqlDataAdapter adapter; fechaIni = dtp.Value.Year.ToString() + "/" + dtp.Value.Month.ToString() + "/" + dtp.Value.Day.ToString(); fechaFin = dtp2.Value.Year.ToString() + "/" + dtp2.Value.Month.ToString() + "/" + dtp2.Value.Day.ToString(); try { crearConsulta(); ds = new dataSet_inventarios(); adapter = new MySqlDataAdapter(query, con); adapter.Fill(ds, "Solvencia"); switch (cb_tipo.SelectedIndex) { case 0://Texto reportetxt = new crSolvenciaT(); reportetxt.SetDataSource(ds); crv.ReportSource = reportetxt; break; case 1://Grafica reporteg = new crSolvenciaG(); reporteg.SetDataSource(ds); crv.ReportSource = reporteg; break; case 2://Ambos reporte = new crSolvenciaA(); reporte.SetDataSource(ds); crv.ReportSource = reporte; break; } } catch(FormatException fex) { MessageBox.Show(fex.Message); } }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crSolvenciaT rpt = new crSolvenciaT(); rpt.Site = this.Site; return rpt; }