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

Free Support Forum - aspose.com

Coping Bookmark from one word 2016 document to another

“Getting this exception: Unable to cast object of type ‘Aspose.Words.Tables.Table’ to type ‘Aspose.Words.Paragraph’. in the import nodes iteration.” All I want is to create a C# method that will copy the contents of a bookmark in one Word document into the bookmark of an other Word document.
Thanks in advance for the suggestions from all parties, much appreciated.


You can Extract Content from a Bookmark by using Aspose.Words. Use DocumentBuilder to move cursor inside another Bookmark and insert nodes (e.g. from extractedNodesInclusive object) in it by using DocumentBuilder.InsertNode method. Hope, this helps.