Skip to content

Instantly share code, notes, and snippets.

@conholdate-gists
Created October 31, 2024 18:38
Show Gist options
  • Save conholdate-gists/f7700e8edf7b6316ae1df4a484526917 to your computer and use it in GitHub Desktop.
Save conholdate-gists/f7700e8edf7b6316ae1df4a484526917 to your computer and use it in GitHub Desktop.
Convert MPP to Excel XLSX in C# | Microsoft Project File to Excel XLS
// Load the input MPP file
Aspose.Tasks.Project project = new Aspose.Tasks.Project("New Project.mpp");
// Initiate XlsxOptions class object
Aspose.Tasks.Saving.XlsxOptions options = new Aspose.Tasks.Saving.XlsxOptions();
options.PageSize = Aspose.Tasks.Visualization.PageSize.A4;
// Convert MS Project MPP to Excel XLSX
project.Save("MS Project.xlsx", options);
// Load the input Project file
Aspose.Tasks.Project project = new Aspose.Tasks.Project("New Project.mpp");
// Convert MPP to Excel
project.Save("MS Project.xlsx", Aspose.Tasks.Saving.SaveFileFormat.Xlsx);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment