Deleting the contents does not work (as written in the code below). I have to fill out some information, so I need to set certain properties of the cell.
// set defaults for each cell
Cell c;
for (int i = 0; i < tbl.Rows.Count; i++) {
for (int j = 0; j < tbl.Columns.Count; j++) {
c = tbl.Cells[i, j];
c.DeleteContent();
c.TextStyleId = styid;
c.TextHeight = _txht;
c.Alignment = CellAlignment.MiddleCenter;
c.Borders.Horizontal.Margin = 0.03;
// c.Value = "";
}
}
I tested adding a block to the table with the original code, and no issues were had. Thanks for the idea though, Daniel.