diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index cddb94b6..aa564f81 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -921,9 +921,12 @@ namespace Volian.Print.Library // get the first table & see if it is borderless. If borderless, 16bit code removed a // line (yoffset) before printing it: float yoffadj = 0; - VlnFlexGrid fg = new VlnFlexGrid(1, 1); - fg.LoadGrid(itemInfo.Tables[0]); - if (fg.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None) yoffadj = -SixLinesPerInch; + if (itemInfo.Tables[0].IsTable) + { + VlnFlexGrid fg = new VlnFlexGrid(1, 1); + fg.LoadGrid(itemInfo.Tables[0]); + if (fg.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None) yoffadj = -SixLinesPerInch; + } if(!aerTableOrFigure && itemInfo.RNOLevel == 0) // Centered Table yoff = ChildrenBelow.Add(cb, itemInfo.Tables, XOffset, yOffRight + yoffadj, yOffRight + yoffadj, rnoLevel, maxRNO, formatInfo);