diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 6c36fa1a..3ea0334e 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1350,6 +1350,11 @@ namespace Volian.Print.Library if (itm.FormatStepData != null && (itm.FormatStepData.Index == 42 || itm.FormatStepData.Index == 43)) return true; return false; } + private static VlnFlexGrid _MyFlexGrid = new VlnFlexGrid(1, 1); + public static VlnFlexGrid MyFlexGrid + { + get { return _MyFlexGrid; } + } public vlnParagraph(vlnParagraph parent, PdfContentByte cb, ItemInfo itemInfo, float xoff, float yoff, int rnoLevel, int maxRNO, FormatInfo formatInfo, string prefix, string suffix, float yoffRightParent) { if (itemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj != null) @@ -1672,9 +1677,9 @@ namespace Volian.Print.Library float yForCheckoff = yoff; //0; - default checkoff row is same as FIRST line of text // if dropCheckoff is true, then the checkoff is place on the same of row as the LAST line of text bool dropCheckoff = itemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.CheckOffData.DropCheckOff; - VlnFlexGrid myFlexGrid = new VlnFlexGrid(1, 1); if (itemInfo.MyContent.MyGrid != null) { + VlnFlexGrid myFlexGrid = new VlnFlexGrid(1, 1); myFlexGrid.LoadGrid(itemInfo); MyGrid = new vlnTable(myFlexGrid, cb); Height = MyGrid.Height; @@ -1906,9 +1911,8 @@ namespace Volian.Print.Library float yoffadj = 0; if (itemInfo.Tables[0].IsTable) { - //VlnFlexGrid fg = myFlexGrid; - //fg.LoadGrid(itemInfo.Tables[0]); - if (myFlexGrid.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !myFlexGrid.TopRowHasBorder()) + MyFlexGrid.LoadGrid(itemInfo.Tables[0]); + if (MyFlexGrid.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !MyFlexGrid.TopRowHasBorder()) yoffadj = -SixLinesPerInch; }