Using Aspose.Words 14.10 and the attached document with the included code (modified from your samples)…when I merge two tables and save to PDF, the border styles mess up/change. Specifically, the second table which has no border style, ends up with a full border. What is interesting is that if I uncomment the two lines of code that save to docx and reload the document, then it works just fine, but I’d rather not incur that performance cost. Any hints/tips/tricks?
Document doc = new Document("Table.Document.docx");
// Get the first and second table in the document.
// The rows from the second table will be appended to the end of the first table.
Table firstTable = (Table)doc.GetChild(NodeType.Table, 0, true);
Table secondTable = (Table)doc.GetChild(NodeType.Table, 1, true);
// Append all rows from the current table to the next.
// Due to the design of tables even tables with different cell count and widths can be joined into one table.
while (secondTable.HasChildNodes)
firstTable.Rows.Add(secondTable.FirstRow);
// Remove the empty table container.
secondTable.Remove();
// doc.Save("Table.CombineTables Out.docx");
// doc = new Document("Table.CombineTables Out.docx");
doc.Save("Table.CombineTables Out.pdf");