open xml file with project 2003

E

elad

How can I open an xml file that saved from project 2003 as xml (suitable with
the project 2003 schema) from .net code?
I want to open the file without seeing the import wizard (same as I open an
MPP file).
 
E

Ed Morrison

First you must set a reference in .net to
Microsoft.Office.Interop.MSProject. Then try the following code (in VB.net:
Dim ProjApp As New Microsoft.Office.Interop.MSProject.Application

ProjApp.FileOpen(filename, False,
Microsoft.Office.Interop.MSProject.PjMergeType.pjDoNotMerge)

Hope this helps.
 
C

Cory K. Walker

Another option is to open the MPP or XML-saved project file using the Project
2003 OLEDB Provider.

Of course, if you are really a warrior you can traverse the XML DOM for the
necessary information you need.
 

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