private void AddNewPage(int pageNumber) { PageNumberFooter pageNumberFooter = new PageNumberFooter(pageNumber); m_CurrentReportPage = new ReportPage(m_ReportNextPageHeader, pageNumberFooter); m_FixedDocument.Pages.Add(m_CurrentReportPage.PageContent); }
/// <summary>constructor /// </summary> /// <param name="reportFirstPageHeader"></param> /// <param name="reportFooter">page header for first page</param> /// <param name="reportNextPageHeader">page header for second and next pages, if null then page header for first page is used</param> public ReportDocument(HeaderFooterBase reportFirstPageHeader, HeaderFooterBase reportFooter, HeaderFooterBase reportNextPageHeader = null) { m_ReportFirstPageHeader = reportFirstPageHeader; m_ReportNextPageHeader = (reportNextPageHeader ?? m_ReportFirstPageHeader); m_ReportFooter = reportFooter; m_FixedDocument = new FixedDocument(); m_FixedDocument.DocumentPaginator.PageSize = new Size(ReportPage.DisplayResolution * ReportPage.PageWidth, ReportPage.DisplayResolution * ReportPage.PageHeight); m_CurrentReportPage = new ReportPage(m_ReportFirstPageHeader, m_ReportFooter); m_FixedDocument.Pages.Add(m_CurrentReportPage.PageContent); m_CurrentReportPage.UpdatePageLayout(); }
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(); }
private void AddNewPage() { m_CurrentReportPage = new ReportPage(m_ReportNextPageHeader, m_ReportFooter); m_FixedDocument.Pages.Add(m_CurrentReportPage.PageContent); }