I'm having trouble with inserting a formatted text into a table cell. If I add the new formatted text directly into a table cell then the entire row does not render. However, if I add the formatted text into a Group and then add the group to the table cell then it works. But the cell contents are superimposed on each other.
I am using version 4.0.3.20.
Problems with FormattedTextArea inserted into Table Cell
Re: Problems with FormattedTextArea inserted into Table Cell
Support · May 19, 2008Hello,
Are you adding more than one element to the cell of the table. If so you will have to use the group element. You can not add more elements directly to the cell.
We are able to add the FormattedTextArea without any problem to the cell of the table. What exact problem are you getting? Following is the code we used for this.
Document document = new Document();
Page page = new Page();
Table table = new Table(10, 10, 200, 0);
table.Columns.Add(100);
table.Columns.Add(100);
for (int i = 0; i < 5; i++)
{
Row row = table.Rows.Add();
row.Cells.Add(i.ToString());
FormattedTextArea area = new FormattedTextArea("ceTe Software", 0, 0, 100, 50, FontFamily.Helvetica, 12, true);
row.Cells.Add(area);
}
table.Height = table.GetRequiredHeight();
page.Elements.Add(table);
document.Pages.Add(page);
document.DrawToWeb();
Please try using the latest build dlls. You can download the latest build from our CustomerArea
by logging in using your current serial number.
Thanks,
ceTe Software Support Team.