I am building a table in MigraDoc. I have found a way to put a Table
into a Table.Row.Cell
with the help of a TextFrame
. Unfortunately the Row.Cell
does not grow when adding new entries into the TextFrame
. So at a certain point the inner table overlaps into the rows beneath.
Here is my Code:
this.Table = this.MigraDokument.AddSection().addTable();
Row row = this.Table.AddRow();
TextFrame Frame = row.Cells[0].AddTextFrame();
Table k_table = Frame.AddTable();
// adding rows with
// Row row2 = k_table.AddRow();
How can I tell the Row.Cell to grow with every entry that I put into the inner Table?
Edit: My problem was not that I could not add a nested table, like in [MigraDoc - imbricated / nested tables?. Although the answer from the link helped me. This question deals with the topic that TextFrames might be an inappropriate way to nest tables in tables because the Cell does not scale with the nested table.