From e9aea4eeb5983ca99b309ebe9ee85cafcc2582ff Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 19 May 2016 18:12:42 +0000 Subject: [PATCH] WCN has many sections that do not contain steps. The pagination logic has been changed to support Sections without steps. --- PROMS/Volian.Print.Library/Pagination.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index 84f69e9c..9a6c890b 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -73,6 +73,11 @@ namespace Volian.Print.Library if (MyItemInfo.MyPrevious != null) // add if statement to fix Westinghouse print issue 3-21-2014 return 1; } + if (MyItemInfo.IsSection && _ChildrenBelow == null && YSize > (yLocation-yBottomMargin)) + { + ShowPageBreak(1, "Page Break before empty section", "Yes", YSize, yPageSize, yWithinMargins, ManualPageBreak); + return 1; + } // if the EndForSingle format flag is set to false, then we do not print an End message if the section // is a single column section. //bool _skipEndMessage = MyPageHelper.MySection.SectionConfig.Section_ColumnMode == SectionConfig.SectionColumnMode.One && !MyItemInfo.ActiveFormat.MyStepSectionLayoutData.EndForSingle;