We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to Copy the Content in one Table cell to another cell with full paragraph style?

How to Copy the Content in one Table cell to another cell with full paragraph style by Aspose.Words like attachment ?

Hi Betty,


Thanks for your inquiry. You can meet this requirement by using the following code:

Document doc = new Document(MyDir + @“input.docx”);

Table tbl = doc.FirstSection.Body.Tables[0];

tbl.LastRow.LastCell.RemoveAllChildren();

foreach (Node node in tbl.FirstRow.FirstCell)

{

tbl.LastRow.LastCell.AppendChild(node.Clone(true));

}

doc.Save(MyDir + @"16.2.0.docx");


Hope, this helps.

Best regards,