From 26ac4d5716e58ae6138eb32c8e8259ae433e6ba2 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 21 Feb 2018 15:57:38 +0000 Subject: [PATCH] Handle complex AER and RNO pagination logic better. Ultimately we may want to separate AER and RNO pagination logic. --- PROMS/Volian.Print.Library/Pagination.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index e6cbc954..8ec8e274 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -130,7 +130,6 @@ namespace Volian.Print.Library return 2; } } - // 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; @@ -196,6 +195,14 @@ namespace Volian.Print.Library ShowPageBreak(1, reason, "Yes", YSize, yPageSize, yWithinMargins, ManualPageBreak); return 2; // break on this item within a step } + // B2018-015 Pagination Issue VCS EOP-15.0 Step 15 - Handle when RNO is exactly aligned with the AER column + else if (!MyPageHelper.ParaBreaks[0].PageBreakOnStep && this.YTopMost >= MyPageHelper.ParaBreaks[0].YTopMost) + { + MyPageHelper.ParaBreaks.RemoveAt(0); + reason = AddReason("Partial Step - Case 4"); + ShowPageBreak(1, reason, "Yes", YSize, yPageSize, yWithinMargins, ManualPageBreak); + return 2; // break on this item within a step + } return 0; // this is not an item with a break } float mySize = YSize * MyPageHelper.YMultiplier;