DCSIMG
Office Tip: How To Show Internal Application Dialogs - IronShay

Office Tip: How To Show Internal Application Dialogs

If you want to show an application dialog (for example, the "Save As" dialog) from your own code, all you have to do is (the following is a Word object model example):

Application.Dialogs[WdWordDialog.wdDialogFileSaveAs].Show(ref Type.Missing);

The WdWordDialog has, I guess, all of the available dialogs one can use in Word... Use it generously!

By the way, this will work with any Office application you're playing with. The differences will be the dialog enum name (and values of course) and the parameters you need to send to the Show method.

All the best,
Shay.

Published Wednesday, September 10, 2008 7:54 AM by shayf
תגים:,

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: