I would like to add a table inside another table (inside a specific cell).
I can't find a way to add a Table
object to a Cell
object.
Is that simply impossible?
Alternatively, I may merge some cells, but I can't find any sample in MigraDoc website with cells merging.
Here is my code :
Table parentTable = new Table();
parentTable.AddColumn(Unit.FromCentimeter(9));
Row parentRow = parentTable.AddRow();
Cell parentCell = parentRow.Cells[0];
Table currentTable = new Table();
currentTable.AddColumn(Unit.FromCentimeter(4));
Row currentRow = currentTable.AddRow();
currentRow.Cells[0].AddParagraph("blablabla");
parentCell.Add(currentTable); // this does not work