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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user