2
I am using Interop to manipulate a word, through an application console.
using Word = Microsoft.Office.Interop.Word;
I can extract the byte array, save as PDF, as image etc, but a relatively simple thing I’m needing I haven’t yet managed.
I need to replace a certain document text, which is inside a text box, but I don’t know how to do this.
From the variable _documentoWord
I can access the elements, but in my attempts it hasn’t worked yet.
_aplicativoWord = new Word.Application() {Visible = false};
_documentoWord = _aplicativoWord.Documents.Open(caminho);