MPXJ in .NET Update MS Project file and convert to json

51 views Asked by At

I'm using the MPXJ library in .NET for parsing MS Project (MPP) files and convert it to JSON for my web application. The problem is that I can't update the links in the file to get the latest data at the moment (press F9 on MSProject). Any ideas?

I tried projectFile.updateStructure(); but unfortunately it doesn't work

ProjectReader reader = new UniversalProjectReader();
ProjectFile projectFile = reader.read("inputFile.mpp");

foreach (Task task in projectFile.Tasks){
   Console.Out.WriteLine(task.Name)
}
projectFile.updateStructure();
ProjectWriter writer = ProjectWriterUtility.getProjectWriter("outputFile.json");
writer.write(projectFile, "outputFile.json");
0

There are 0 answers