Código:
Gracias DocApp = new ActiveXObject("Word.Application"); var DocWord = DocApp.Documents.Open(ruta); .... fillField(DocWord,"LOGO","ruta de la imagen"); function fillField(DocObj,strOld,strNew) { var strFieldOld = "«" + strOld + "»" var enc = true; while (enc) { enc = DocObj.Selection.Find.Execute(strFieldOld); if (enc) { var x = DocObj.Selection.Application; DocObj.Selection.Cut(); DocObj.Selection.Range.InlineShapes.AddPicture(strNew,true,true); DocObj.Selection.End = 0; } } }