Reading Microsoft Project file problem
-
Hi, I am making an application integrated with Microsoft Project in c#. Now ,I want to read mpp file and convert all task objects to DTOs. I created DTOs same as Task object. The application should read any Microsoft Project version (from MS 2003). I used the normal methods creating the ApplicationClass object, reading the Project object, then iterating the tasks etc. Found it is too slow and OS dependent. I cant quit the Winproject.exe from my application in Win 2003 server. Also the application doesn't works on 64 bit OS. Please guide me to a solution. Hoping a reply... I had already posted this thread one month before. But didnt get any answer. Regards, DJ
-
Hi, I am making an application integrated with Microsoft Project in c#. Now ,I want to read mpp file and convert all task objects to DTOs. I created DTOs same as Task object. The application should read any Microsoft Project version (from MS 2003). I used the normal methods creating the ApplicationClass object, reading the Project object, then iterating the tasks etc. Found it is too slow and OS dependent. I cant quit the Winproject.exe from my application in Win 2003 server. Also the application doesn't works on 64 bit OS. Please guide me to a solution. Hoping a reply... I had already posted this thread one month before. But didnt get any answer. Regards, DJ
There are many options to do the same. 1. Interop (messy and horribly slow for large projects) 2. Save project in XML and work with it (messy) 3. Save project in the database (that's not publishing and it is available for project 2003 only - see ODBC option while saving). I've seen it being used a lot in the integration scenarios 4. Projette[^] (commercial, $10 per license) 5. ILog Project Viewer[^] (also commercial) 6. The MPXJ (mpxj.sf.net[^]) library comes in both Java and .Net flavours and will allow you to read and write multiple Microsoft Project file formats using a single consistent API. I am aware of commercial products which use both the Java and the .Net versions of MPXJ without any issues. Please find the links of related Primary Interop Assemblies: 1. Office 2003 Update: Redistributable Primary Interop Assemblies http://www.microsoft.com/downloads/details.aspx?familyid=3c9a983a-ac14-4125-8ba0-d36d67e0f4ad&displaylang=en[^] 2. 2007 Microsoft Office System Update: Redistributable Primary Interop Assemblies http://www.microsoft.com/downloads/details.aspx?familyid=59DAEBAA-BED4-4282-A28C-B864D8BFA513&displaylang=en[^] HTH
Jinal Desai - LIVE Experience is mother of sage....