public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { gmTodayOrders rpt = new gmTodayOrders(); rpt.Site = this.Site; return(rpt); }
private void btnToday_Click(object sender, EventArgs e) { gmTodayOrders rpt = new gmTodayOrders(); //rpt.SetParameterValue("SelectDate", DateTime.Today.Date); crystalReportViewer1.ReportSource = rpt; crystalReportViewer1.Refresh(); }