BladeHal
BladeHal

Reputation: 783

Word 2010 Interop: Show the "Save As" dialog

I need a way to always show the save as dialog when the user performs a certain action on a Word document. Currently, the dialog only shows when an unsaved document is saving. These documents I am working on have already been saved in one location with a particular name, but users will need to be able to change the name and the location.

Upvotes: 3

Views: 1617

Answers (1)

BladeHal
BladeHal

Reputation: 783

Figured it out. Very simple, in case someone else runs into the same issue:

var wordDialog = 
Globals.ThisDocument.ThisApplication.Dialogs[Word.WdWordDialog.wdDialogFileSaveAs];
wordDialog.Show();

Upvotes: 7

Related Questions