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