public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { OccupancyChartReport rpt = new OccupancyChartReport(); rpt.Site = this.Site; return(rpt); }
private void OccupancyChartViewer_Load(object sender, EventArgs e) { sportsDataSet ds = new sportsDataSet(); sportsDataSetTableAdapters.occupancyTableAdapter ta = new sportsDataSetTableAdapters.occupancyTableAdapter(); ta.Fill(ds.occupancy); OccupancyChartReport cr = new OccupancyChartReport(); cr.SetDataSource(ds); OccupancyChartViewer.ReportSource = cr; }