Created
November 5, 2024 14:02
-
-
Save conholdate-gists/fa6100334be3f4d2acc21e978daa27a4 to your computer and use it in GitHub Desktop.
Convert MPP to CSV in C# | Microsoft Project File to Comma Separated File
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 input MPP file | |
Aspose.Tasks.Project project = new Aspose.Tasks.Project("New Project.mpp"); | |
// Create CsvOptions class object | |
CsvOptions options = new CsvOptions(); | |
// To change what columns will be exported the DataCategory property can be used | |
// changing the data category from DataCategory.Tasks to DataCategory.Resources | |
options.DataCategory = DataCategory.Resources; | |
// Save the output CSV file | |
project.Save("ResourceView.csv", options); |
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 input MPP file | |
Aspose.Tasks.Project project = new Aspose.Tasks.Project("New Project.mpp"); | |
// Create CsvOptions class object | |
Aspose.Tasks.Saving.CsvOptions options = new Aspose.Tasks.Saving.CsvOptions(); | |
options.TextDelimiter = Aspose.Tasks.Saving.CsvTextDelimiter.Semicolon; | |
// Save the output CSV file | |
project.Save("CsvOptions_out.csv", options); |
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 input MPP file | |
Aspose.Tasks.Project project = new Aspose.Tasks.Project("New Project.mpp"); | |
// Save the output CSV file | |
project.Save("ProjectCSV.csv", Aspose.Tasks.Saving.SaveFileFormat.Csv); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment