none
Detecting a Project 2010 File using the interop pia RRS feed

  • Question

  • Hi,

      I ran into an issue opening up a project 2010 file, if I am using the Project 2007 pia.  Rather then throw an exception, it just locks up the call (bcause the native app has a dialog box open).  This is WITH the display alerts set to false...  Anyone have any thoughts on how to progamatically detect that the .mpp file is saved in 2010 format prior to or during the FileOpenEx call?

    Microsoft.Office.Interop.MSProject.

    Application projApplication = new Microsoft.Office.Interop.MSProject.Application

    ();

    projApplication.DisplayAlerts =

    false;

    projApplication.FileOpenEx("C:\\Project Files\\Project2010.mpp", openPool: PjPoolOpen.pjPoolReadWrite);

    ....

    Thursday, June 23, 2011 4:00 PM

All replies