Kal Posted December 12, 2018 Share Posted December 12, 2018 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 Quote Link to comment Share on other sites More sharing options...
Kal Posted December 13, 2018 Author Share Posted December 13, 2018 Just to be a little more clear. I want to reduce the margin space above and below the variable text in the table. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.