Find and replace text in .docx file without opening the file
<p>I have a template .docx file where I have to replace the placeholder. I've used the code from <a href="https://stackoverflow.com/questions/19252252/c-sharp-word-interop-find-and-replace-everything">c# word interop find and replace everything</a> to replace the name in my word file. That works just fine.</p>

<pre><code>object fileName = GetFilePath();
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application { Visible = true };
Microsoft.Office.Interop.Word.Document aDoc = wordApp.Documents.Open(fileName, ReadOnly: false, Visible: true);

aDoc.Activate();

FindAndReplace(wordApp, "firstname", "Max");

aDoc.Save();
</code></pre>

<p>This implementation does open the word file.
My question is, if there is any way to replace the text without opening the file?</p>