File Open Dialog - Project 2003

  • Thread starter StuckInProjectAddinHell
  • Start date
S

StuckInProjectAddinHell

Hi,

I am trying to get the name of the file opened using the
Application.FileOpen() when I don't give any parameters. I want to display
the "Path" of the file that was opened using the dialog box.

To my understanding, Project doesnot support Application.FileDialog like
other office applications. I can't seem to find a workaround where I could
somehow see the name of the Last File Opened. (from the list that shows in
the File Menu)

I am writing a Shared Add-in using Visual Studio 2005 (Visual Basic)

Thanks
 
S

StuckInProjectAddinHell

Thanks!

Just one small correction :)
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\MS Project\Recent File List

Options was additional and it has to be 11.0

Thanks for the help. It worked fine :)
 
S

StuckInProjectAddinHell

Ok, update on this issue:

The registry query does not work. MSP only updates these after you close the
application. There is a much simpler way:

FullName property of the Project Object gives you the Path + File Name
Path Property of the Project Object gives you the Path
Project property of any Task/ Resource/etc object gives you the name of the
project.

Just an update if anyone is looking :)

Thanks.
 

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