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)