From 855b07e5b315276fa01dc59ff68e2bab07b83417 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 20 Mar 2018 12:39:47 +0000 Subject: [PATCH] B2018-049: When printing, page sizes are incorrect for 11x17 pages if previous section has supplemental information --- PROMS/Volian.Print.Library/PromsPrinter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index 53f30637..a9ba4ba4 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -493,7 +493,7 @@ namespace Volian.Print.Library _PageCountOfWordSection = 1; } else - _PageCountOfWordSection++; + if (!_MyHelper.OnBlankPage) _PageCountOfWordSection++; // B2018-049: supplemental printing throws off page sizes MyReaderHelper.MySectionInfo = LastWordSection; //ShowNeedForPageSize(); rct = MyReaderHelper.GetSize(LastWordSection, _PageCountOfWordSection); @@ -510,7 +510,8 @@ namespace Volian.Print.Library } // Bug Fix: B2016-135 when using a large page size word section, that large page size was being used for the foldout page // save this for the next section which will be the large page size word section. - if (_MyFoldoutReader.Count > 0) + // Bug Fix: B2018-049 supplemental printing throws off page sizes (need to do same thing as fix for foldouts) + if (_MyFoldoutReader.Count > 0 || (_MyHelper!=null && _MyHelper.MySection != null && _MyHelper.MySection.MyProcedure.ProcHasSupInfoData)) MyContentByte.PdfDocument.SetPageSize(NxtRCT); else MyContentByte.PdfDocument.SetPageSize(rct);