示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            OccupancyCrystalReport rpt = new OccupancyCrystalReport();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        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;
        }