private void RunDataReport (ReportModel reportModel,IDataManager data) { ILayouter layouter = new Layouter(); IReportCreator reportCreator = DataPageBuilder.CreateInstance(reportModel,data,layouter); reportCreator.SectionRendering += new EventHandler<SectionRenderEventArgs>(PushPrinting); reportCreator.PageCreated += OnPageCreated; reportCreator.BuildExportList(); ShowCompleted(); }
private void RunFormSheet (ReportModel reportModel) { Layouter layouter = new Layouter(); IReportCreator reportCreator = FormPageBuilder.CreateInstance(reportModel,layouter); reportCreator.SectionRendering += new EventHandler<SectionRenderEventArgs>(PushPrinting); reportCreator.PageCreated += OnPageCreated; reportCreator.BuildExportList(); ShowCompleted (); }