public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { MonthlyRevenue rpt = new MonthlyRevenue(); rpt.Site = this.Site; return(rpt); }
private void frmRevenueReport_Load(object sender, EventArgs e) { DataSet4 ds = new DataSet4(); DataSet4TableAdapters.revenuereportTableAdapter da = new DataSet4TableAdapters.revenuereportTableAdapter(); da.Fill(ds.revenuereport); MonthlyRevenue cr = new MonthlyRevenue(); cr.SetDataSource(ds); cr.SetParameterValue("Year", ucReports.year); crRevenue.ReportSource = cr; }