Problem Opening MPP(xml) using C#

M

Mohan Kumar

using the following code,i opening the xml using MSProject.but it does not
work?
what is wrong in my code?

please help me on this.

Thanks in advance.

string xmlfile = @"D:\test.xml";
Microsoft.Office.Interop.MSProject.ApplicationClass app =
new ApplicationClass();
object oMissing = Type.Missing;
bool bOpen = app.FileOpen(xmlfile, true,
PjMergeType.pjDoNotMerge, oMissing, oMissing, oMissing, oMissing, oMissing,
oMissing, oMissing, oMissing, PjPoolOpen.pjDoNotOpenPool, oMissing, oMissing,
oMissing, oMissing);
 
A

Abhijit

in case you are still struggling, you need to speficy the formatID as
"MSProject.XML"
i.e
FileOpen(mlfile, true, PjMergeType.pjDoNotMerge, oMissing, oMissing,
oMissing, oMissing, oMissing, oMissing,"MSProject.XML".........
 

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