Hello,
When I am creating a tables that contains dynamic cells in rows, I can’t keep the rows staying in same width. I tried the following methods and all failed.
Method #1:
Table table=new Table(doc);
Row row1 = new Row(doc);
row1.Cells.Add(new Cell(doc));
table.Rows.Add(row1);
Row row2 = new Row(doc);
row2.Cells.Add(new Cell(doc));
row2.Cells.Add(new Cell(doc));
table.Rows.Add(row2);
Method #2:
Using DocumentBuilder to build the above table.
Method #3:
Creating a 2X2 table, and then merge the 2 cells in the 1st Row.
Please see attached screen shot. Please let me know how I can create the expected table with rows staying in same width.
Thank you!