How to Update Microsoft Project MPP Files

With Aspose.Tasks for .NET it is possible to update Microsoft Project (MPP/XML) files in addition to XML. You can save the updated data to an existing or a new file.

Updating Microsoft Project 2010 MPP Files

The following examples show how to add a new task to an existing Microsoft Project 2010 file and save it back to the same file. The code goes through the following steps:

  1. Create an instance of the project reader.
  2. Read the file.
  3. Create a task.
  4. Add the task to the project.
  5. Recalculate the project.
  6. Save.

The code snippets show the code first in C#.