From d0e2eda99923bed2183bb242de52cdcb632af7f4 Mon Sep 17 00:00:00 2001 From: Rich Date: Mon, 8 Jun 2020 14:40:13 +0000 Subject: [PATCH] =?UTF-8?q?B2020-082=20=E2=80=93=20Text=20was=20missing=20?= =?UTF-8?q?from=20the=20bottom=20of=20some=20table=20cells=20in=20the=20PD?= =?UTF-8?q?F=20File.=20=20Logic=20was=20added=20to=20adjust=20the=20top=20?= =?UTF-8?q?offset=20according=20to=20the=20font=20family=20name=20(Courier?= =?UTF-8?q?=20and=20VESymbFix).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/Grid2Pdf.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Grid2Pdf.cs b/PROMS/Volian.Print.Library/Grid2Pdf.cs index ff80c0e9..34d9fb1d 100644 --- a/PROMS/Volian.Print.Library/Grid2Pdf.cs +++ b/PROMS/Volian.Print.Library/Grid2Pdf.cs @@ -987,7 +987,12 @@ public string Path foreach (vlnCell myCell in this) { // B2020-034 - the topPlacementAdjust is used to position the text vertically in the table cells. - int topPlacementAdjust = (myCell.MyPara.Font.Size == 12)? 1 : 3; // for font size of 12 set to one, else set to 3 + // B2020-082 - AEP Production - American Electric Power - D. C. Cook + // / Current (Post FLEX) - U1 NOP NOT [EOPs] - ES-3.3.SProcedure Body.S9..S1..S1..T1. + // Table did not print properly. Cell text was truncated. + int topPlacementAdjust = (myCell.MyPara.Font.Size == 12 && + myCell.MyPara.Font.Familyname != "Courier New" && + myCell.MyPara.Font.Familyname != "VESymbFix") ? 1 : 3; // for font size of 12 set to one, else set to 3 myCell.ToPdf(myColumnText, left, top, topPlacementAdjust); } }