Changed VlnBorders so that XML is not saved twice

Changed MyBorderDetailString so that XML is saved once
Adjust the vertical location of the Grid to match 16 bit.
This commit is contained in:
Rich
2011-04-12 13:49:01 +00:00
parent 76dd59be14
commit c1d863e1ac
3 changed files with 13 additions and 3 deletions

View File

@@ -124,6 +124,12 @@ namespace Volian.Print.Library
if (textLayer != null) cb.EndLayer();
return bottom;
}
private static float _GridTopAdjust = -10;
public static float GridTopAdjust
{
get { return _GridTopAdjust; }
set { _GridTopAdjust = value; }
}
public static float GridAt(PdfContentByte cb, vlnTable myGrid, float x, float y, float width, float height, string debugText, float yBottomMargin, bool hasBorder)
{
VlnSvgPageHelper _MyPageHelper = cb.PdfWriter.PageEvent as VlnSvgPageHelper;
@@ -135,7 +141,7 @@ namespace Volian.Print.Library
ColumnText myColumnText = new ColumnText(cb);
myColumnText.SetSimpleColumn(left, top, left + width, yBottomMargin);
if (textLayer != null) cb.BeginLayer(textLayer);
myGrid.ToPdf(myColumnText, left, top);
myGrid.ToPdf(myColumnText, left, top + GridTopAdjust);
if (textLayer != null) cb.EndLayer();
return bottom;
}