From c99b216e5113bb6e101e55eef090dc2069d3f25b Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 28 Aug 2014 15:22:31 +0000 Subject: [PATCH] (B2014-095) Added a BackSpaceSize format variable off PrintData (B2014-095) Use BackSpaceSize --- PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs | 8 ++++++++ PROMS/Volian.Print.Library/vlnParagraph.cs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index 8acdda86..3483d700 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -649,6 +649,14 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _DoPrnDrvrAdjusts, "@DoPrnDrvrAdjusts"); } } + private LazyLoad _BackSpaceSize; + public float? BackSpaceSize + { + get + { + return LazyLoad(ref _BackSpaceSize, "@BackSpaceSize"); + } + } private LazyLoad _TopOfPageThing; public string TopOfPageThing { diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 9eecfa21..70a05e62 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -2342,7 +2342,7 @@ namespace Volian.Print.Library // Need the following with some modifications for WCNCKL format: if (Rtf.Contains("{Backspace}")) { - XOffset -= 25; + XOffset -= (formatInfo.PlantFormat.FormatData.PrintData.BackSpaceSize??25); Width += 24; Rtf = Rtf.Replace("{Backspace}", ""); }