diff --git a/PROMS/Formats/fmtall/BNPP1all.xml b/PROMS/Formats/fmtall/BNPP1all.xml index 9e9461e0..4e844e99 100644 Binary files a/PROMS/Formats/fmtall/BNPP1all.xml and b/PROMS/Formats/fmtall/BNPP1all.xml differ diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index d3933be3..71d3cccd 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -2394,6 +2394,14 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _SectionNumberAndTitleLength, "@SectionNumberAndTitleLength"); } } + private LazyLoad _SectNumAndTlLenLand; // B2021-119: large titles on Landscape Word Attachments are printing on 2 lines. + public int? SectNumAndTlLenLand + { + get + { + return LazyLoad(ref _SectNumAndTlLenLand, "@SectNumAndTlLenLand"); + } + } private LazyLoad _ForeColor; public string ForeColor { diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index f7dca972..9a1543d3 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -1861,7 +1861,12 @@ i = 0; 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, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionNumberAndTitleLength); + // B2021-119: large titles on Landscape Word Attachments are printing on 2 lines. + int? stl = (int)section.ActiveFormat.PlantFormat.FormatData.SectData.SectionNumberAndTitleLength; + if (section.MyDocStyle.LandscapePageList && section.ActiveFormat.PlantFormat.FormatData.SectData.SectNumAndTlLenLand != null) + stl = section.ActiveFormat.PlantFormat.FormatData.SectData.SectNumAndTlLenLand; + + plstr = SplitTitle(svgGroup, pageItem, stitle, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionTitleLength, token, plstr, stl); if ((pageItem.Justify & VEPROMS.CSLA.Library.E_Justify.PSOnlyFirst) == VEPROMS.CSLA.Library.E_Justify.PSOnlyFirst) // B2020-047 only set PrintedSectionPage if PSOnly is used PrintedSectionPage = (int)pageItem.Row - _sectLevelNumTtlDiff; }