示例#1
0
        public ReportingTool(int ReportType)
        {
            CrystalReport1 cr = new CrystalReport1();
            Data = new RISData();
            GenericDS = new DataSet();

            this.ReportType = ReportType;
            switch (ReportType)
            {
                case 0: report = new JournalArticleDoE();
                    break;
                case 1: report = new ConferencePaperDoE(); 
                    break;
                case 2: report = new BookDoE();
                    break;
                default: report = new ReportClass();
                    break;
            }
        }
示例#2
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     CrystalReport1 rpt = new CrystalReport1();
     rpt.Site = this.Site;
     return rpt;
 }