How To: Work with MPP files

The MPP extension is used to represent Microsoft Project files, although each version of Microsoft Project reads and writes a different file format - despite sharing the same extension.

The sample code below illustrates how to read data from an MPP file.

import net.sf.mpxj.ProjectFile;
import net.sf.mpxj.mpp.MPPReader;

...

MPPReader reader = new MPPReader();
ProjectFile projectFile = reader.read(inputFile);