I am creating a document based on an existing Word template that has existing tables within it.
I am trying to insert rows at a certain position within the table. It is a 5 row table with the first row being a header and rows 3-5 are footer rows. So when I insert a row I need to add it between row 2 and 3. The column layout of the new row needs to duplicate row 2.
So far all I have is:
var nodes = document.GetChildNodes(NodeType.Table, true);
Aspose.Words.Tables.Table table = nodes as Table;
Ideally I could just do something like:
and that would do it.
I have found table.Rows.Add(node); but I don't know where the value of this node param comes from nor can I specify at which row position to place it.
How can I do this?