Hi,
Just curious if it is possible to put more than one page element in a table cell. An example would be if I want to put some text (TextArea) in a cell then circle one of the words using the circle class. Thanks for your time.
-Jason
Multiple page elements in a table cell?
Re: Multiple page elements in a table cell?
Support · Aug 29, 2006Yes, you can add any number of PageElements to the cell of a table without any problem. The following code will show you the example you asked for.
Document doc = new Document();
ceTe.DynamicPDF.Page page = new Page();
Table table = new Table(10,10,500,500);
table.Columns.Add(200);
for(int i=0;i<5;i++)
{
Row row = table.Rows.Add(100);
Circle cir = new Circle(50,50,50);
TextArea area = new TextArea("CeTe",20,20,50,20);
AreaGroup AG = new AreaGroup(100,100);
AG.Add(cir);
AG.Add(area);
row.Cells.Add(AG);
}
page.Elements.Add(table);
doc.Pages.Add(page);
doc.DrawToWeb();
Thanks,
ceTe Software Support Team
Re: Multiple page elements in a table cell?
Forum member · Aug 30, 2006That will work. The AreaGroup class is the piece of the puzzle I was missing. Thanks.