From c668bbaca64ac3b5fe5e106d86f8f81baface58c Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 16 Mar 2016 12:25:04 +0000 Subject: [PATCH] B2016-079: Page number transitions to Word sections were incorrect if printing with duplex foldouts --- PROMS/Volian.Print.Library/PromsPrinter.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index 2f383a63..1acd04f7 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -908,9 +908,19 @@ namespace Volian.Print.Library public void CreateWordDocPdf(PdfContentByte cb, SectionInfo mySection) { if (mySection.PageNumber == -1) // If page num transition goes to a section, need the pagenumber of section. - mySection.PageNumber = _MyHelper.CurrentPageNumber; + { + if ((mySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountFoldoutPgs) == E_DocStructStyle.DontCountFoldoutPgs) + mySection.PageNumber = _MyHelper.CurrentPageNumberNoFoldouts; + else + mySection.PageNumber = _MyHelper.CurrentPageNumber; + } else - mySection.PageNumberNextPass = _MyHelper.CurrentPageNumber; + { + if ((mySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountFoldoutPgs) == E_DocStructStyle.DontCountFoldoutPgs) + mySection.PageNumberNextPass = _MyHelper.CurrentPageNumberNoFoldouts; + else + mySection.PageNumberNextPass = _MyHelper.CurrentPageNumber; + } int profileDepth = ProfileTimer.Push(">>>> CreateWordDocPdf"); _MyHelper.MySection = mySection; try