From 58a878da9d8f83bddf75f02b9a77571533f90047 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 20 Mar 2020 12:27:32 +0000 Subject: [PATCH] B2020-031: Supplemental information print has extra blank page --- PROMS/Volian.Print.Library/vlnParagraph.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 7c1fff39..892d35ec 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -2018,7 +2018,17 @@ namespace Volian.Print.Library } else { - MyPromsPrinter.InsertBlankPage(cb); + // B2020-031: Don't put out an extra blank page if section has title that is printed (blank page is output then) + bool titlePrinted = false; + if (MyItemInfo.IsSection || (MyItemInfo.IsHigh && MyItemInfo.MyPrevious == null)) + { + // see if the section title is printed. + SectionConfig sch = MyItemInfo.ActiveSection.MyConfig as SectionConfig; + titlePrinted = (sch == null || sch.Section_PrintHdr == "Y") || !(MyItemInfo.MyActiveSection as SectionInfo).HasSupInfoSteps; + titlePrinted &= (ShowSectionTitles && !MyItemInfo.MyDocStyle.CancelSectTitle); + } + if (MyItemInfo.IsHigh && MyItemInfo.MyPrevious == null && !titlePrinted) + MyPromsPrinter.InsertBlankPage(cb); } } if (MyItemInfo.MyDocStyle.LandscapePageList)