Example #1
0
        public override void GenerateReport()
        {
            base.ReportModel.ReportSettings.ReportType = GlobalEnums.ReportType.DataReport;
            base.ReportModel.ReportSettings.DataModel  = GlobalEnums.PushPullModel.PullData;
            base.GenerateReport();
            GlobalEnums.ReportLayout reportLayout = ReportStructure.ReportLayout;
            AbstractLayout           layout       = LayoutFactory.CreateGenerator(reportLayout, base.ReportModel, base.ReportItemCollection);

            layout.CreateReportHeader();
            layout.CreatePageHeader();
            layout.CreateDataSection(base.ReportModel.DetailSection);
            layout.CreatePageFooter();
            base.WriteToXml();
        }
        public override void GenerateReport()
        {
            base.ReportModel.ReportSettings.ReportType = GlobalEnums.ReportType.DataReport;
            base.ReportModel.ReportSettings.DataModel  = GlobalEnums.PushPullModel.PushData;
            base.ReportModel.ReportSettings.AvailableFieldsCollection.AddRange(reportStructure.AvailableFieldsCollection);
            base.GenerateReport();
            GlobalEnums.ReportLayout reportLayout = (GlobalEnums.ReportLayout)base.Properties.Get("ReportLayout");
            AbstractLayout           layout       = LayoutFactory.CreateGenerator(reportLayout, base.ReportModel, base.ReportItemCollection);

            layout.CreateReportHeader();
            layout.CreatePageHeader();
            layout.CreateDataSection(base.ReportModel.DetailSection);
            layout.CreatePageFooter();
            base.WriteToXml();
        }