Michael

Michael

  • 1.5k
  • 238
  • 18.9k

Manipulate merged fields in Word document using C#

Jul 24 2015 7:20 AM
Hello Everyone,
 
 
I need your assistance for my problem. I have a word document which contains merged fields and another word document with text with specific format. I need to read/get the text from one document keeping the format and write/type this text in one of the merged fields of the first word document.
 
Please note that I can read/get the text as object but I couldn't write it as word wordApp.Selection.TypeText(string value) allows only string variables.
 
 
Thank you in advance.