Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Occupancy rpt = new Occupancy();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frmOccupancyReport_Load(object sender, EventArgs e)
        {
            DataSet6 ds = new DataSet6();

            DataSet6TableAdapters.bookinginvoicereportTableAdapter da = new DataSet6TableAdapters.bookinginvoicereportTableAdapter();
            da.Fill(ds.bookinginvoicereport);
            Occupancy cr = new Occupancy();

            cr.SetDataSource(ds);
            cr.SetParameterValue("dateFrom", ucReports.datefrom);
            cr.SetParameterValue("dateTo", ucReports.dateto);
            crOccupancy.ReportSource = cr;
        }