Replace text with images

How can I find a text in a word document and replace it with an image?


3 Replies

AN Anto Nihil Sahaya Raj Syncfusion Team August 12, 2022 11:40 AM UTC

Hi Olayinka,

To achieve your requirement, we suggest you to find the text in a Word document by using Find API and replace the text with an image by using Replace API.

Please refer the below our documentation links to know about how to find and replace the text with an image,
https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace#find-and-replace-text-with-an-image
https://www.syncfusion.com/blogs/post/7-useful-ways-to-find-and-replace-text-in-a-word-document-using-csharp.aspx#replace-text-with-image


Regards,
Anto Nihil S

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.



WI will November 17, 2022 07:44 AM UTC

Open Windows Explorer.

Locate the image file that you want to use.

Take right click on the file and select Copy.

Open MS Word document in which replacement is to be done.

Press Ctrl + H to launch Find and Replace dialog box.

In Find what, type the text that you want to replace.


Regards,

Will



AA Anitha Azhagesan Syncfusion Team November 18, 2022 05:45 AM UTC

Thanks for your suggestion. 


Loader.
Up arrow icon