I need to intercept an event before the Word Open File dialog is displayed. Specifically, I need to set the document path when the Open File dialog opens. The event Word.Application.DocumentOpen is too late, and I also cannot use the .NET Framework OpenFileDialog.
I could call:
Word.Application.ChangeFileOpenDirectory("C:\\tmp");
But this only works for the first time the Open File dialog is displayed, if called in ThisAddIn_Startup. If I open a second document, the previous path is suggested.
Any suggestions? Thanks!