I'm using Interop to manipulate a word, through a console application.
using Word = Microsoft.Office.Interop.Word;
I can extract the byte array, save as Pdf, as image etc, but a relatively simple thing that I'm needing I still can not do.
I need to give a replace in a certain text of the document, which is inside a text box, but I do not know how to do it.
From the variable _documentoWord
I can access the elements, but in my attempts it still did not work.
_aplicativoWord = new Word.Application() {Visible = false};
_documentoWord = _aplicativoWord.Documents.Open(caminho);