Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active December 23, 2021 06:18
Show Gist options
  • Save aspose-com-gists/98573f5b11b4e6f246ef07afabd02f52 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/98573f5b11b4e6f246ef07afabd02f52 to your computer and use it in GitHub Desktop.
Convert MPP to Excel XLSX or CSV Programmatically in C#
// Read the input Project MPP file
Aspose.Tasks.Project project = new Aspose.Tasks.Project("Project.mpp");
// Initialize CsvOptions class instance
Aspose.Tasks.Saving.CsvOptions options = new Aspose.Tasks.Saving.CsvOptions();
options.TextDelimiter = Aspose.Tasks.Saving.CsvTextDelimiter.Semicolon;
// Save output CSV file
project.Save("Project.csv", options);
// Read the input Project MPP file
Aspose.Tasks.Project project = new Aspose.Tasks.Project("Project5.mpp");
// Initialize XlsxOptions class object
Aspose.Tasks.Saving.XlsxOptions options = new Aspose.Tasks.Saving.XlsxOptions();
options.PageSize = Aspose.Tasks.Visualization.PageSize.A4;
// Save output XLSX file
project.Save("Project.xlsx", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment