How to open MS Project file

Hi,I am trying to read MS Project file to Notes. How do we open an existing file? I am using the following

pjFileName = “C:\DummyProject.mpp”

Set projectObj = CreateObject( “MSProject.Application” )

Call projectObj.Projects.Open( pjFilename)

Set activeProject = projectObj.ActiveProject

The third line is the one which is flunking and probably needs a small change.

Any pointer or help is appreciated.

Thanks

Subject: How to open MS Project file

Hi,

My COM-programming is a little rusty, but you might try “GetObject” instead of “CreateObject”.

Ex:

Set ActiveProject = GetObject(pjFilename, “MSProject.Project”)

I’m not sure about the “MSProject.Project”-thing, because I don’t have a COM reference for MS Project.

Greetz,

Jeroen.

Subject: RE: How to open MS Project file

Thanks Jeroen. I was able to connect and open up file !I hadn’t expected it so quick !