I wrote a WPF/C# application that generates .docx (MS-Word) documents. I want the user to be able to edit the generated document and return to my WPF application.
Sadly, WYSIWYG editing of a .docx document can only be done with Word, so I had to start MS-Word (Word 2016) with my generated document from within my application. Now I am searching for a safe way to know when the user has finished editing the Word document. I assume that the user closes that instance of Word with my document, once he/she has finished editing. I need to "wait for Word" so I can continue to process that Word document. (The user can later choose to send the document as as email etc. pp. ). I am thinking about watching the file handles on my Word documents, but i find it too "hackish".
I wonder if anyone knows a safe and clean way to implement this.