You can find detailed information at: Convert MS Project MPP to Word Document (DOC/DOCX) using C#
Last active
August 16, 2021 13:01
-
-
Save aspose-com-gists/bccd1b214896e9691893914d72fe49df to your computer and use it in GitHub Desktop.
Convert MS Project MPP to Word Document (DOC/DOCX) using C# | https://blog.aspose.com/2021/08/13/convert-ms-project-mpp-to-word-document-doc-docx-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"); | |
// Create an instance of the MemoryStream class | |
MemoryStream stream = new MemoryStream(); | |
// Save the project as PDF to the MemoryStream | |
project.Save(stream, SaveFileFormat.PDF); | |
// Load the PDF from the MemoryStream | |
Document document = new Document(stream); | |
// Save the PDF as DOCX | |
document.Save("OutputDirectory\\SaveProjectAsDocx_out.docx", SaveFormat.DocX); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment