private void AddNewPage(int pageNumber) { PageNumberFooter pageNumberFooter = new PageNumberFooter(pageNumber); m_CurrentReportPage = new ReportPage(m_ReportNextPageHeader, pageNumberFooter); m_FixedDocument.Pages.Add(m_CurrentReportPage.PageContent); }
public MultiPageDocument(HeaderFooterBase reportFirstPageHeader, HeaderFooterBase reportNextPageHeader = null) { this.m_ReportFirstPageHeader = reportFirstPageHeader; this.m_ReportNextPageHeader = (reportNextPageHeader ?? m_ReportFirstPageHeader); this.m_FixedDocument = new FixedDocument(); this.m_FixedDocument.DocumentPaginator.PageSize = new Size(ReportPage.DisplayResolution * ReportPage.PageWidth, ReportPage.DisplayResolution * ReportPage.PageHeight); PageNumberFooter pageNumberFooter = new PageNumberFooter(1); this.m_CurrentReportPage = new ReportPage(m_ReportFirstPageHeader, pageNumberFooter); this.m_FixedDocument.Pages.Add(m_CurrentReportPage.PageContent); this.m_CurrentReportPage.UpdatePageLayout(); }