Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically access a Microsoft Project (MPP) file from C#

Tags:

What are my options for programmatically accessing a Microsoft Project file? What are the pros and cons of each approach?

I will basically need to import all data from the file into another data structure. Using the Office Interop assembies is low on the preference scale.

like image 915
Bob Avatar asked Sep 30 '08 15:09

Bob


People also ask

Can I view MPP files without project?

mpp) files when you don't have Microsoft Project on your computer. Though you'll still need Microsoft Project to make edits, you can use apps like Project Viewer 365 and MOOS Project Viewer to simply view the files.

Does MS Project have an API?

Project supports add-ins made with the JavaScript API, but there's currently no JavaScript API designed specifically for interacting with Project. You can use the Common API to create Project add-ins.

Can I open an MPP file with project for the Web?

Any . mpp files from Project Desktop 2016 or later should be importable into Project for the web. Keep in mind that Project for the web has lower limits than Project Desktop.


1 Answers

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.

Disclaimer: I'm the maintainer of MPXJ.

like image 92
Jon Iles Avatar answered Sep 22 '22 19:09

Jon Iles