Cannot open MS Project 2003 file from VB.NET

S

srini

Hi,
I am using Visual Studio 2008, .NET 3.5SP1 and Winforms VB.NET
Since VS 2003/2005 i have been using this code to open .mpp files created by
MS Project 2000
and still works with VS 2008 code.
In the References i have 'Interop.MSProject 9.0'

However, when i try to open mpp file created by MS Project 2003, i get this
error
---------------------------
Microsoft Visual Basic
---------------------------
File not found
---------------------------
OK Help
---------------------------
even though the file exists
On my system, i have only MS Project 2000 and i am trying to open mpp that
someone created using MSProject 2003 and sent me.

MSPrjApp = New MSProject.Application
MSPrjApp.FileOpen(tmpMpp, ReadOnly:=True)
MSPrjProject = MSPrjApp.ActiveProject()


It doesn't complain at the FileOpen line. Only when it goes to the
'ActiveProject' line does it throw 'File Not Found' dialog box and quits.

Can someone help me with this?

Thanks,
-srinivas yelamanchili
 

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