diff --git a/PROMS/Formats/fmtall/BGESTPall.xml b/PROMS/Formats/fmtall/BGESTPall.xml index 8aab31ae..7f8722b0 100644 Binary files a/PROMS/Formats/fmtall/BGESTPall.xml and b/PROMS/Formats/fmtall/BGESTPall.xml differ diff --git a/PROMS/VEPROMS.CSLA.Library/Format/ENums.cs b/PROMS/VEPROMS.CSLA.Library/Format/ENums.cs index 790f8c8c..1b1ba6a1 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/ENums.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/ENums.cs @@ -167,6 +167,7 @@ namespace VEPROMS.CSLA.Library DSS_SimpleTopSectionContinue = 0x80000000, // Use the Top continue message as the section continue */ DSS_DontDoCheckOffs = 0x100000000, // format has checkoffs, but don't do for this section DSS_PageListSpBckgrnd = 0x200000000, // this background document style has special formatting: margins, title with cont and non underlined header (IP2BCK) + DSS_PageListAddSectCont = 0x400000000, // for this section, add the top continue message when doing the ATTACHTITLECONT pagelist token (Calvert/Landscape word docs) }; public enum E_DocStyleUse : uint { diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index 18d05551..38cb0a16 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -667,6 +667,7 @@ namespace Volian.Print.Library } } float origYoff = (float)mySection.MyDocStyle.Layout.TopMargin; + bool resetSvgForCont = true; for (int ii = 0; ii < sectPageCount; ii++) { int pageNumber = 1 + ii; @@ -737,6 +738,18 @@ namespace Volian.Print.Library // if this document style has another style that is for pages other than first, we need to // reset the document style off of this section AND reset docstyle values used. _MyHelper.DidFirstPageDocStyle = true; + + // Calvert has a case in their stp landscape word docs where a ' (Continued)' message + // appears in their pagelist item for printing the section title, {ATTACHTITLECONT} pagelist + // However, other sections use this token, but do NOT have the continue message - so + // the docstyle was added to flag the difference between them (STP-Landscape Attachments has it, + // STP-Attachments do not) + if (resetSvgForCont && (mySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_PageListAddSectCont) == E_DocStructStyle.DSS_PageListAddSectCont) + { + _MyHelper.ResetSvg(); + resetSvgForCont = false; // only need to reset it once (for all pages after 1st page) + } + //DebugPagination.WriteLine("CreateWordDocPdf"); if ((mySection.MyDocStyle.StructureStyle.Where & E_DocStyleUse.UseOnFirstPage) > 0) _MyHelper.MySection = mySection; // this resets the docstyle/pagestyle in pagehelper diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index c503002b..f85ccde1 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -1488,7 +1488,14 @@ namespace Volian.Print.Library } if (printsectlevel) { - plstr = SplitTitle(svgGroup, pageItem, section.DisplayText, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionTitleLength, token, plstr); + string stitle = section.DisplayText; + if (((section.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_PageListAddSectCont) == E_DocStructStyle.DSS_PageListAddSectCont) + && token.Contains("ATTACHTITLECONT") && DidFirstPageDocStyle) + { + string myMsg = section.MyDocStyle.Continue.Top.Message; + if (myMsg != null && myMsg != "")stitle = stitle + myMsg; + } + plstr = SplitTitle(svgGroup, pageItem, stitle, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionTitleLength, token, plstr); PrintedSectionPage = (int)pageItem.Row - _sectLevelNumTtlDiff; } else