B2020-031: Supplemental information print has extra blank page

This commit is contained in:
Kathy Ruffing 2020-03-20 12:27:32 +00:00
parent 8b389f9727
commit 58a878da9d

View File

@ -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)