コード例 #1
0
        protected Point BuildDetail(BaseSection section, IDataNavigator dataNavigator)
        {
            ExporterCollection convertedList = new ExporterCollection();

            foreach (BaseReportItem item in section.Items)
            {
                IBaseConverter baseConverter = ConverterFactory.CreateConverter(item, base.ReportModel, dataNavigator,
                                                                                this.SinglePage);

                if (baseConverter != null)
                {
                    baseConverter.SectionRendering     += OnSectionRendering;
                    baseConverter.GroupHeaderRendering += OnGroupHeaderRendering;
                    baseConverter.GroupFooterRendering += OnGroupFooterRendering;
                    baseConverter.RowRendering         += OnRowRendering;

                    baseConverter.Graphics  = base.Graphics;
                    baseConverter.PageFull += new EventHandler <NewPageEventArgs>(OnPageFull);

                    convertedList = baseConverter.Convert(section, item);

                    base.SinglePage.Items.AddRange(convertedList);
                    return(baseConverter.CurrentPosition);
                }
            }
            return(Point.Empty);
        }
コード例 #2
0
        protected void BuildDetail(BaseSection section, IDataNavigator dataNavigator)
        {
            ExporterCollection convertedList = new ExporterCollection();



            foreach (BaseReportItem item in section.Items)
            {
                IBaseConverter baseConverter = ConverterFactory.CreateConverter(item, dataNavigator,
                                                                                this.SinglePage, this.ExportItemsConverter,
                                                                                base.Layouter);
                if (baseConverter != null)
                {
                    baseConverter.SectionRendering += OnSectionRendering;
                    baseConverter.Graphics          = base.Graphics;
                    baseConverter.PageFull         += new EventHandler <NewPageEventArgs>(OnPageFull);

                    convertedList = baseConverter.Convert(section, item);

                    base.SinglePage.Items.AddRange(convertedList);
                    SetPageFull();
                }
            }
        }