private void RunFormSheet(ReportModel reportModel) { IReportCreator reportCreator = FormPageBuilder.CreateInstance(reportModel); // reportCreator.SectionRendering += new EventHandler<SectionRenderEventArgs>(PushPrinting); BuildExportList(reportCreator); }
public IReportCreator ReportCreator(IReportModel reportModel) { ReportModel = reportModel; var builder = new FormPageBuilder(ReportModel); return(builder); }
public IReportCreator ReportCreator(Stream stream) { ReportModel = LoadReportModel(stream); var builder = new FormPageBuilder(ReportModel); return(builder); }
private void RunFormSheet(ReportModel reportModel) { IReportCreator reportCreator = FormPageBuilder.CreateInstance(reportModel); reportCreator.SectionRendering += new EventHandler <SectionRenderEventArgs>(PushPrinting); reportCreator.PageCreated += OnPageCreated; reportCreator.BuildExportList(); ShowCompleted(); }
/// <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); }
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); }