Hello all,
I'm hoping someone can point me in the right direction. Like the previous poster, I'm having an issue with the VAlign property of FPTable. I have a rule in which I create a table and set it to align cell content to center, both horizontally and vertically. This works if I call the rule as the first item in a text box. But if there is anything at all, even just a carriage return, above the rule, the content of the cells floats to the top. Everything else looks to be following the rule.
Here is the rule:
new FPTable;
var myTable = new FPTable;
myTable.AddColumns(16000, 6000, 6000, 6000, 6000, 6000);
// Add the top row
var topRow = myTable.AddRow();
topRow.Cells[0].HAlign = "Center";
topRow.Cells[0].VAlign = "Middle";
topRow.Cells[0].SetBorders("Thin", "Black", "Top", "Bottom", "Right", "Left");
topRow.Cells[0].Font="Times New Roman";
topRow.Cells[0].PointSize=11;
topRow.Cells[0].Bold="On";
topRow.CopyCells(0,1,2,3,4,5);
topRow.SetContents("Your Monthly Amount", "$100", "$250", "$500", "$1,000", "$5,000");
// Add the bottom row
var bottomRow = myTable.AddRow();
bottomRow.Cells[0].SetBorders("Thin", "Black", "Top", "Bottom", "Right", "Left");
bottomRow.Cells[0].ShadeColor="Black";
bottomRow.Cells[0].ShadePct=15;
bottomRow.Cells[0].Font="Times New Roman";
bottomRow.Cells[0].PointSize=11;
bottomRow.Cells[0].Bold="On";
bottomRow.CopyCells(0,1,2,3,4,5);
bottomRow.SetContents("Our Offer To You", "100", "250", "500", "1000", "5000");
// Center the table in the text box
return myTable.MakeTags().replace(/^\<table/, "<table alignment=center");
Using FP VDP Creator 8.2.7. I've attached a sample job for perusal. I cannot seem to figure this one out.
Thanks! LetterP.zip