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

Free Support Forum - aspose.com

How to Replace particular table content from one document to another document using Aspose.word in C#

Hi Team,
I have two word document file (File A,File B),
In File A there is 100 table with content and File B there is 100 table with date

So how can Replace particular table (table 15 and table 60) content File b to file A


You need to use Document.ImportNode method to import table from one document into another document. The CompositeNode.InsertAfter and CompositeNode.InsertBefore methods can be used to insert the table after and before the specified reference node.

If you face any issue while importing table from one document into another, please attach the following resources here for our reference:

  • Your input Word documents.
  • Please attach the expected output Word file that shows the desired behavior.

We will then provide you code example according to your requirement.

PS: To attach these resources, please zip and upload them.