Project load version problem

B

B. Chernick

I'm rather new to programming Project objects in VB.

I'm running VS2005 and I'm trying to init an instance of Project in a
Winforms program. So far as I know I have the latest version of the Core and
Interop referenced.

Here's the problem. I have both Project 2000 and 2003 loaded on my machine
and Project 2000 loads every time. How do I select the version of Project to
be loaded?

(The code is in an extremely early stage. This is all I'm doing to calll up
the instance of Project.

Private aApp As Microsoft.Office.Interop.MSProject.Application
aApp = New Microsoft.Office.Interop.MSProject.Application
aApp.Visible = True

)
 
R

Rod Gill

Which was the last version to be installed? If it was 2003 (it should be)
then I would have expected 2003 to load as .mpp files will be tied to
project 2003.

You could use a Shell command to start project 2003 (using the full path of
the .exe file) then a GetObject to link to the running instance.

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:
http://www.projectvbabook.com
 
B

B. Chernick

Actually I should clarify that under normal conditions, this system is
supposed to only use projects stored on SQL Server 2000.

So you're saying that the Interop itself has no way to distinguish between
multiple versions of Project?
 

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