public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptStateAccount rpt = new rptStateAccount(); rpt.Site = this.Site; return(rpt); }
public void LoadReport(int resId) { try { rptStateAccount crpt = new rptStateAccount(); ReservationDataService myResDataServ = new ReservationDataService(); DataTable storeData = myResDataServ.FindGroupRes(resId); //dgvMsr.DataSource = storeData; //MonthlyReportData = storeData; //StartDate = startDateDgv; //EndDate = endDate; crpt.Database.Tables["StateAcc"].SetDataSource(storeData); crvStateAcc.ReportSource = null; crvStateAcc.ReportSource = crpt; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }