public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { TopHostReport rpt = new TopHostReport(); rpt.Site = this.Site; return(rpt); }
public static ReportDocument MakeTopHostRep(DateTime dtStart, DateTime dtEnd) { TopHostReport rep = new TopHostReport(); (rep.ReportDefinition.ReportObjects["Interval"] as TextObject).Text += string.Format("{0} - {1}", dtStart, dtEnd); TopHostTableAdapter ta = new TopHostTableAdapter(); rep.SetDataSource((DataTable)ta.GetData(dtStart, dtEnd)); return(rep); }