Jump to content

Table height issue


Kal

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...