public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CRAlimentos rpt = new CRAlimentos(); rpt.Site = this.Site; return(rpt); }
private void button1_Click(object sender, EventArgs e) { dtf.Visible = true; dtini.Visible = true; lblDesde.Visible = true; lblHasta.Visible = true; TorneoAnual.CrystalReports.CRAlimentos cRAlimentos = new CrystalReports.CRAlimentos(); cRAlimentos.SetParameterValue("@Inicial", dtini.Value.Date); cRAlimentos.SetParameterValue("@Final", dtf.Value.Date); cv.ReportSource = null; cv.ReportSource = cRAlimentos; }