“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.
Cheers,
Kingsley.
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.