Exemplo n.º 1
0
        private void RunFormSheet(ReportModel reportModel)
        {
            IReportCreator reportCreator = FormPageBuilder.CreateInstance(reportModel);

//			reportCreator.SectionRendering += new EventHandler<SectionRenderEventArgs>(PushPrinting);
            BuildExportList(reportCreator);
        }
Exemplo n.º 2
0
        public IReportCreator ReportCreator(IReportModel reportModel)
        {
            ReportModel = reportModel;
            var builder = new FormPageBuilder(ReportModel);

            return(builder);
        }
Exemplo n.º 3
0
        public IReportCreator ReportCreator(Stream stream)
        {
            ReportModel = LoadReportModel(stream);
            var builder = new FormPageBuilder(ReportModel);

            return(builder);
        }
Exemplo n.º 4
0
        private void RunFormSheet(ReportModel reportModel)
        {
            IReportCreator reportCreator = FormPageBuilder.CreateInstance(reportModel);

            reportCreator.SectionRendering += new EventHandler <SectionRenderEventArgs>(PushPrinting);
            reportCreator.PageCreated      += OnPageCreated;
            reportCreator.BuildExportList();
            ShowCompleted();
        }
Exemplo n.º 5
0
        /// <summary>
        /// Use this method for pullData and FormSheet
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="reportParameters">null if no parameters are used</param>
        /// <returns><see cref="BasePager"</returns>
        public static IReportCreator CreatePageBuilder(string fileName,
                                                       ReportParameters reportParameters)
        {
            if (String.IsNullOrEmpty(fileName))
            {
                throw new ArgumentNullException("fileName");
            }

            IReportModel   reportModel = LoadReportModel(fileName);
            IReportCreator builder     = null;

            if (reportModel.DataModel == GlobalEnums.PushPullModel.FormSheet)
            {
                builder = FormPageBuilder.CreateInstance(reportModel);
            }
            else
            {
                CheckForParameters(reportModel, reportParameters);
                IDataManager dataMan = DataManagerFactory.CreateDataManager(reportModel, reportParameters);
                builder = DataPageBuilder.CreateInstance(reportModel, dataMan);
            }
            return(builder);
        }
Exemplo n.º 6
0
        public static IReportCreator ExporterFactory(IReportModel reportModel)
        {
            IReportCreator reportCreator = null;

            switch (reportModel.ReportSettings.DataModel)
            {
            case GlobalEnums.PushPullModel.FormSheet:
            {
                reportCreator = new FormPageBuilder(reportModel);
                break;
            }

            case GlobalEnums.PushPullModel.PullData:
            {
                break;
            }

            case GlobalEnums.PushPullModel.PushData:
            {
                break;
            }
            }
            return(reportCreator);
        }