I have a template .docx file where I have to replace the placeholder. I've used the code from c# word interop find and replace everything to replace the name in my word file. That works just fine.
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();
This implementation does open the word file. My question is, if there is any way to replace the text without opening the file?