The following code opens the document in the background but not make it visible even though I am using Visible = true and oDoc.Activate();
using Word = Microsoft.Office.Interop.Word;
Word.Application oApp = new Word.Application();
Word.Document oDoc = oApp.Documents.Open(FileName: @"C:\Folder1\Test1.docx", Visible: true);
oDoc.Activate();
According to this SO post, it should have worked.
It looks like you forgot to set the Visible property of the Application class.
See How to automate Microsoft Word to create a new document by using Visual C# for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With