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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        public static ReportDocument MakeClientRep(DateTime dtStart, DateTime dtEnd)
        {
            ClientReport             rep = new ClientReport();
            ClientReportTableAdapter ta  = new ClientReportTableAdapter();

            rep.SetDataSource((DataTable)ta.GetData(dtStart, dtEnd));
            (rep.ReportDefinition.ReportObjects["Interval"] as TextObject).Text +=
                string.Format("{0} - {1}", dtStart, dtEnd);
            UserReportTableAdapter uta = new UserReportTableAdapter();

            rep.Subreports[0].SetDataSource((DataTable)uta.GetData(dtStart, dtEnd));
            (rep.Subreports[0].ReportDefinition.ReportObjects["Interval"] as TextObject).Text +=
                string.Format("{0} - {1}", dtStart, dtEnd);
            return(rep);
        }