public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ReportOcc rpt = new ReportOcc(); rpt.Site = this.Site; return(rpt); }
public void LoadOccupancyRep(DateTime startDateDgv, DateTime endDateDgv) { try { ReportOcc crpt = new ReportOcc(); ReservationDataService myResDataServ = new ReservationDataService(); DataTable storeData = myResDataServ.Occupancy(startDateDgv, endDateDgv); //dgvMsr.DataSource = storeData; //MonthlyReportData = storeData; //StartDate = startDateDgv; //EndDate = endDate; crpt.Database.Tables["OccReport"].SetDataSource(storeData); crvOccReport.ReportSource = null; crvOccReport.ReportSource = crpt; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }