Forms.OpenFileDialog instead of wdDialogFileOpen

F

Fruber Malcome

I'd like to use the OpenFileDialog and the SaveFileDialog instead of the
word versions for reasons of better filter support, handling the filename
etc.

My problem is that they don't show up on top of office when they appear -
but the word versions do - what can I do to give them top focus? (not custom
dialogs, but the Forms.Dialog.

Another question, if I'm stuck using the word versions - how do I get the
name of the file that they chose to use for saving? (the dlg.name?)

Any help would be appreciated.
thanks - Fruber.
'
 
C

Cindy M -WordMVP-

Hi Fruber,
Another question, if I'm stuck using the word versions - how do I get the
name of the file that they chose to use for saving? (the dlg.name?)
With Application.Dialogs(wdDialogFileSaveAs)
If .Show <> 0 Then
strFileName = .Name
End If
End with

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
F

Fruber Malcome

How about the SaveFileAs dialog? - It seems that just changing the name to
something like *.x isn't enough..

I'm thinking, since we have more control over custom forms in C#, that it's
better to build a form wrapper on the .NET Open / Save File dialogs and then
they would appear on top of word.

thanks - Fruber
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top