You can find detailed information at: Convert XML to MPP or MPP to XML Programmatically using C#
Last active
August 27, 2021 10:42
-
-
Save aspose-com-gists/6b8a740eed7d8b23f914ab5552e8d1cb to your computer and use it in GitHub Desktop.
Convert XML to MPP or MPP to XML Programmatically using C# | https://blog.aspose.com/2021/08/25/convert-xml-to-mpp-or-mpp-to-xml-programmatically-using-csharp/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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