Free Support Forum - aspose.com

Extract from one document- replace in another document w/first document's content

I'm currently evaluating the ASPOSE.WORDS tool and I would like to extract content from one document and replace tags in another document with the content I extracted. The content could contain text and/or an image.

The ExtractContentBetweenBookmark() method looks pretty straight forward as to retrieving the content from the source document, but how would I persist 4 or 5 bookmarks worth of content and then loop through the source document looking for tags and performing replace?

Hello

Thanks for your request. Please see the following link to learn how to extract content between nodes:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-extract-selected-content-between-nodes-in-a-document.html

After this, you can try using the way described here to insert this content into another document:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-insert-a-document-into-another-document.html

Best regards,