I need to adjust the height to a minimum for the top and bottom and just can't get it. Here is the script and I attached a sample file.
var myTable = new FPTable;
myTable.AddColumns(37400, 12300);
for (var i = 1; i <= 5; i++)
{
if (!Field("PD_S" + i))
continue;
var row = myTable.AddRow();
var cell = row.Cells[0];
var Table =row.Cells[0].SetBorders("Very Thin", "Black", "Top", "Bottom", "Right", "Left");
var Table =row.Cells[1].SetBorders("Very Thin", "Black", "Top", "Bottom", "Right", "Left");
cell.Font="Arial";
cell.PointSize="8";
cell.TextColor="Black";
cell.Margins = new FPTableMargins;
cell.Margins.Top = 0;
cell.Margins.Bottom = 0;
myTable.Rows[0].Cells[0].HAlign = "Top";
myTable.Rows[0].Cells[0].VAlign = "Bottom";
cell.Content = Field("PD_S" + i);
cell = row.Cells[1];
cell.Content = Field("PD_PH_S" + i);
}
return myTable.MakeTags(); Table-Issue.zip