Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/6b8a740eed7d8b23f914ab5552e8d1cb to your computer and use it in GitHub Desktop.
Save aspose-com-gists/6b8a740eed7d8b23f914ab5552e8d1cb to your computer and use it in GitHub Desktop.
// Load the MPP file
Project project = new Project("SourceDirectory\\Tasks\\project_test.mpp");
// Save the MPP file as XML
project.Save("OutputDirectory\\Output.xml", SaveFileFormat.XML);
// Load the XML file
Project xmlProject = new Project("SourceDirectory\\Tasks\\CopyToProjectEmpty.xml");
// Load the template MPP file
Project mppProject = new Project("SourceDirectory\\Tasks\\Blank2010.mpp");
// Copy data from XML to MPP
xmlProject.CopyTo(mppProject);
// Save the MPP file
mppProject.Save("OutputDirectory\\ConvertedXmlToMpp.mpp", SaveFileFormat.MPP);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment