From 5c44ae607f3d1c4f2903dc8a8c9405c866ae39a0 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 26 Oct 2021 13:03:10 +0000 Subject: [PATCH] B2021-119: Large section titles on Landscape Word Attachments are printing on 2 lines B2021-119: BNPP1 - Large section titles on Landscape Word Attachments are printing on 2 lines --- PROMS/Formats/fmtall/BNPP1all.xml | Bin 187864 -> 187916 bytes .../Format/PlantFormat.cs | 8 ++++++++ .../Volian.Print.Library/VlnSvgPageHelper.cs | 7 ++++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/PROMS/Formats/fmtall/BNPP1all.xml b/PROMS/Formats/fmtall/BNPP1all.xml index 9e9461e028e9b397e782d48a8b1a5d5c576075c8..4e844e99266f61ae7820a1f5c3b53df527f892bb 100644 GIT binary patch delta 70 zcmcbyo4aQZ_Xev#eFcVKhE#@Rh7txphEj%H21kZGh7^Vnh8zYTpm-jTOazPAGAJ<^ UGMF@*2DY09GHy2wWLn$<0CZds^#A|> delta 22 dcmeC#!+m2n_XexL=Dfi6yg _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; }