コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            TopHostReport rpt = new TopHostReport();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: koanse/ISALogsAnalyzer
        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);
        }