HeneganIS
asked on
How to get/set directory for Word dialog box using VSTO
C#
VS 2013
VSTO
Word 2013
I am able to call the Word 2013 File Open dialog box. What I would like to do is to set the directory before opening up the dialog box.
For example I would like to set the directory to
\\Server\datashare\clients \Client1
so that when the File Open dialog box opens they will be at the Client1 folder. This is an example, there can be hundreds to different clients.
The following shows the File Open dialog box, but it opens to whatever directory Word last used.
Word.Dialog dlg = Globals.ThisAddIn.Applicat ion.Dialog s[Word.WdW ordDialog. wdDialogFi leOpen];
dlg.Show();
Anyone have any suggestions? Thanks.
VS 2013
VSTO
Word 2013
I am able to call the Word 2013 File Open dialog box. What I would like to do is to set the directory before opening up the dialog box.
For example I would like to set the directory to
\\Server\datashare\clients
so that when the File Open dialog box opens they will be at the Client1 folder. This is an example, there can be hundreds to different clients.
The following shows the File Open dialog box, but it opens to whatever directory Word last used.
Word.Dialog dlg = Globals.ThisAddIn.Applicat
dlg.Show();
Anyone have any suggestions? Thanks.
ASKER
.Name is not an option for the Dialog interface.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It works.
pls try
Open in new window
Regards