I’m using the .NET API to edit table cells and add new rows. The base document has a single row with empty cells in. If I use Word and type text into the columns it is formatted correctly. If I use the Aspose API then the text seems to use some kind of default formatting.
I get the first row and iterate over the cells and do the following to set the text:
cell.FirstParagraph.AppendChild(new Run(document, text));
Note that there are no existing Runs in the Paragraphs so the formatting cannot be on them.
For further rows I clone the Row, append it to the table and iterate over the cells doing the same as above.
Note that in the original document the table has cell borders but after the cells are modified those also seems to be have gone - the table still has it’s borders, it’s just the divisions between the rows and columns that go.
What am I doing wrong?