public List <PageSectionInstance> GetPageSections(int pageNumber, ChunkManager.RenderingChunkManager chunkManager, PageSection headerDef, PageSection footerDef)
        {
            List <PageSectionInstance> result = null;
            int startPage = default(int);
            IntermediateFormatReader pageSectionReader = chunkManager.GetPageSectionReader(pageNumber, out startPage);

            if (pageSectionReader != null)
            {
                result = pageSectionReader.ReadPageSections(pageNumber, startPage, headerDef, footerDef);
                chunkManager.SetPageSectionReaderState(pageSectionReader.ReaderState, pageNumber);
            }
            return(result);
        }
Example #2
0
        internal List <PageSectionInstance> GetPageSections(int pageNumber, ChunkManager.RenderingChunkManager chunkManager, PageSection headerDef, PageSection footerDef)
        {
            List <PageSectionInstance> result = null;
            int currentPageNumber;
            IntermediateFormatReader pageSectionReader = chunkManager.GetPageSectionReader(pageNumber, out currentPageNumber);

            if (pageSectionReader != null)
            {
                result = pageSectionReader.ReadPageSections(pageNumber, currentPageNumber, headerDef, footerDef);
                chunkManager.SetPageSectionReaderState(pageSectionReader.ReaderState, pageNumber);
            }
            return(result);
        }