Jump to content

Setting Height of Rows in a Table


kelly.anderson

Recommended Posts

You can't specify an exact height, as the row automatically expands down to accommodate the text of all the cells in it. However, in FusionPro 8.1 and later, you can specify a minimum height, either with the "minheight" attribute on the <row> tag, or using the table API, with the "minHeight" property of the FPTableRow object.
Link to comment
Share on other sites

  • 2 years later...
You can't specify an exact height, as the row automatically expands down to accommodate the text of all the cells in it. However, in FusionPro 8.1 and later, you can specify a minimum height, either with the "minheight" attribute on the <row> tag, or using the table API, with the "minHeight" property of the FPTableRow object.

 

 

I'm trying to set a minheight attribute within a table but I'm uncertain where to put FPTableRow minHeight.

 

Any help would be appreciated.

 

 

Thanks

 

}

 

 

/*=============================================================================

|| Create the table

||=============================================================================*/

new FPTable;

var myTable = new FPTable;

myTable.AddColumns(7000, 14000, 14000, 14000); // 1 inch = 7200 pts

myTable.AddRows(clientMatch.length+2);

 

 

// HEADER ROW FORMATTING

myTable.Rows[0].Type = "Header";

myTable.Rows[0].Cells[0].Font = "Helvetica";

myTable.Rows[0].Cells[0].PointSize = "10";

myTable.Rows[0].Cells[0].Font = "HelveticaNeue LT 75 Bold";

myTable.Rows[0].Cells[0].TextColor = "Black";

myTable.Rows[0].Cells[0].ShadeColor = "Lt. Blue";

myTable.Rows[0].Cells[0].ShadePct = 100;

myTable.Rows[0].Cells[0].Margins = new FPTableMargins;

myTable.Rows[0].Cells[0].Margins.Top = 50;

myTable.Rows[0].Cells[0].Margins.Right = 500;

myTable.Rows[0].Cells[0].HAlign = "Center";

myTable.Rows[0].CopyCells(0, 1, 2, 3); // Apply the same formating to each cell in this row

// HEADER ROW CONTENT

myTable.Rows[0].SetContents("Date", "Check/Confirmation Number", "Fund Name", "Total Amount");

 

// interate through the length of the arrays (data matches from external data file) and create rows

for (var i=1; i<=clientMatch.length; i++)

{

// TABLE CONTENT FORMATTING

myTable.Rows.Cells[0].Font = "Helvetica";

myTable.Rows.Cells[0].PointSize = "10";

myTable.Rows.Cells[0].Margins = new FPTableMargins;

myTable.Rows.Cells[0].Margins.Top = 50;

myTable.Rows.Cells[0].Margins.Bottom = 50;

myTable.Rows.Cells[0].Margins.Right = 500;

myTable.Rows.Cells[0].SetBorders("Thin", "Lt. Blue", "Bottom");

myTable.Rows.Cells[0].HAlign = "Center";

 

 

myTable.Rows.CopyCells(0,1,2,3); // Apply the same formating to each cell in this row

// CREATE CONTENT FOR EXTERNAL DATA FILE RECORDS

myTable.Rows.SetContents(invoiceMatch[i-1], dateMatch[i-1], jobMatch[i-1], amtMatch[i-1]);

}

 

// FOOTER ROW FORMATTING

myTable.Rows[clientMatch.length+1].Cells[0].Font = "Helvetica";

myTable.Rows[clientMatch.length+1].Cells[0].PointSize = "10";

myTable.Rows[clientMatch.length+1].Cells[0].Font = "HelveticaNeue LT 75 Bold";

myTable.Rows[clientMatch.length+1].Cells[0].TextColor = "Black";

myTable.Rows[clientMatch.length+1].Cells[0].ShadeColor = "White";

myTable.Rows[clientMatch.length+1].Cells[0].ShadePct = 100;

myTable.Rows[clientMatch.length+1].Cells[0].Margins = new FPTableMargins;

myTable.Rows[clientMatch.length+1].Cells[0].Margins.Top = 50;

myTable.Rows[clientMatch.length+1].Cells[0].Margins.Right = 500;

myTable.Rows[clientMatch.length+1].Cells[0].SetBorders("Thin", "Lt.Blue", "Top");

myTable.Rows[clientMatch.length+1].Cells[0].HAlign = "Center";

myTable.Rows[clientMatch.length+1].CopyCells(0, 1, 2, 3); // Apply the same formating to each cell in this row

// CREATE FOOTER CONTENT

myTable.Rows[clientMatch.length+1].SetContents("2014 TOTAL","","", Field("total"));

 

 

return myTable.MakeTags();

}

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...