RO table was failing in DoCOlorLink. This does not fix the problem.

More fixes to support 7LPI when printing grids.
This commit is contained in:
2011-09-30 12:52:13 +00:00
parent 1479746212
commit ea85aeba23
2 changed files with 29 additions and 14 deletions

View File

@@ -558,17 +558,13 @@ namespace Volian.Print.Library
public void ToPdf(iTextSharp.text.pdf.ColumnText myColumnText, float left, float top)
{
myColumnText.Canvas.SaveState();
VlnSvgPageHelper _MyPageHelper = myColumnText.Canvas.PdfWriter.PageEvent as VlnSvgPageHelper;
float mult = _MyPageHelper.YMultiplier;
float x = MyTable.ColLeft[c1];
float w = MyTable.ColLeft[c2 + 1] - x;
float y = MyTable.RowTop[r1];
float h = MyTable.RowTop[r2 + 1] - y;
VlnSvgPageHelper _MyPageHelper = myColumnText.Canvas.PdfWriter.PageEvent as VlnSvgPageHelper;
if (_MyPageHelper.YMultiplier != 1F)
{
Console.WriteLine("'---YMultiplier',{0}", _MyPageHelper.YMultiplier);
Console.WriteLine("'---MultipliedLeading',{0}", MyPara.MultipliedLeading);
}
BordersToPdf(myColumnText, left, top, x, w, y, h * _MyPageHelper.YMultiplier);
float y = mult * MyTable.RowTop[r1];
float h = mult * MyTable.RowTop[r2 + 1] - y;
BordersToPdf(myColumnText, left, top, x, w, y, h );
float hAdjust = VeritcalTextAlignment(h);
iTextSharp.text.pdf.ColumnText myColumnText1 = new iTextSharp.text.pdf.ColumnText(myColumnText.Canvas);
myColumnText1.SetSimpleColumn(1 + left + x, top - y - h, left + x + w, 1 + top - y - hAdjust); // 2 == Default Padding