I have a table that has a header defined in Word and one row that is blank. I have a bookmark marking the first cell in the table so I can jump straight to it. The table has 2 rows and 7 columns.
I test for the row being the last row and if so I want to insert another row to take more data at the end of the table rows.
if (row.IsLastRow)
{
Row rr = new Row(doc);
rr.EnsureMinimum();
for (int iCnt=1;iCnt <= 6;iCnt++)
{
Cell cl = new Cell(doc);
cl.EnsureMinimum();
rr.Cells.Add(cl);
}
table.Rows.Add(rr);
This all works BUT the added rows do not appear in Word when the document is opened. The last rows do not show any cells or text so I beleive that the document is not well formed. What am I doing wrong?
Thanks