Replace and duplicate part of document between 2 tags

Hi,

We have a document template (attached an example) with all kind of placeholders we would like to replace. However we would also like to replace / duplicate parts of the document between 2 placeholders.

We tried using FindSingleLine, but it only returns the text, not content like images, tables, etc. between the 2 placeholders.

Could you tell us how to perform such an action?


Attachment: Example_Template_1ff55ad5.zip

3 Replies

KN Karan Nagarathinam Syncfusion Team March 19, 2026 12:18 PM UTC

Hi Patrick Lind,
Upon further analysis of your requirement, we have achieved it using both Simple and Group Mail Merge performance. We have attached a sample for your reference.

For more details about working with Mail merge, please refer to the documentation here.

Regards,
Karan. 


Attachment: Sample_fb931191.zip


PL Patrick Lind March 19, 2026 01:10 PM UTC

Hi,


Thanks for the solutiuon, but I don't have control over the placeholders, so I cannot change them to mailmerge placeholders. Is there a solution without changing the placeholders?


Also there can be multiple lists in the document. Would this be possible?


Thanks.




GN Gopinath Natesan Syncfusion Team March 20, 2026 03:42 PM UTC

Hi Patrick Lind,
Upon further analysis, we have achieved it using by find and replace. We have attached a sample for your reference.

For more details about working with find and replace, please refer to the documentation
https://help.syncfusion.com/document-processing/word/word-library/net/working-with-find-and-replace

Regards,
Gopinath.


Attachment: Sample_b7811637.zip

Loader.
Up arrow icon