Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Reading Microsoft Project file problem

Reading Microsoft Project file problem

Scheduled Pinned Locked Moved C#
csharpsysadminhelptutorialannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DJ245
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • D DJ245

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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....

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups