From 4266d2fef01281456bfe703cb9d6d223f44d4a58 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 5 Oct 2016 17:40:02 +0000 Subject: [PATCH] Account for Section Continue Messsage when doing pagination --- PROMS/Volian.Print.Library/Pagination.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index 9966b8f2..a4c326c5 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -1106,7 +1106,9 @@ namespace Volian.Print.Library yTop = yTopNew; MyPageHelper.ParaBreaks.Add(paraBreak); ySpaceOnNextPage1 -= paraBreak.GetSectionTopMessageSize(); // B2016-134: Account for wcntraining section top continue on substep containers (notes/cautions) - if (doSectionTitleContinued) ySpaceOnNextPage1 -= 2 * SixLinesPerInch; // B2016-195: Account for Section Continue Message + SectionConfig sch = MyItemInfo.ActiveSection.MyConfig as SectionConfig; + bool doSectionTitleContinued1 = (sch == null || sch.Section_PrintHdr == "Y") && !MyItemInfo.MyDocStyle.CancelSectTitle; + if (doSectionTitleContinued1) ySpaceOnNextPage1 -= 2 * SixLinesPerInch; // B2016-195: Account for Section Continue Message ySpaceOnCurPage = ySpaceOnNextPage1; //ySpaceOnCurPage = yPageSize - (myTopMsgSpace + SixLinesPerInch); // Allow for continue message and blank line.