Search code examples
c#.netms-wordms-officeoffice-interop

Add text and picture in .docx file


I use a Office Word file (template) and in this file there is repetitive default text and photo that I have to replace it by another photo and text

How can I define specific zone in the template and then find those zones in C# to replace them ?


Solution

  • My final approach was to use Content Control in my Word document with a unique id. Then I can find those id's with C# and replace the content.