Microsoft Project (MPP) files can contain tasks, resources, assignments, and different other project-related information. You can convert MPP files to Excel format XLSX or CSV file programmatically using C#. Please refer to the following sections for further details:
- MPP to XLSX or CSV File Converter – C# API Installation
- Convert MPP to XLSX File Programmatically using C#
- Convert MPP to CSV File Programmatically with C#
MPP to XLSX or CSV File Converter – C# API Installation
Aspose.Tasks for .NET API supports creating, editing, or manipulating Microsoft Project files programmatically in .NET-based applications. Simply install the API by downloading the resource files from the New Releases section, or using the following NuGet installation command with the Package Manager tool:
PM> Install-Package Aspose.Tasks
Convert MPP to Excel XLSX File Programmatically using C#
You can convert MPP file to Excel XLSX format file with the below steps:
- Read the input Project MPP file.
- Initialize XlsxOptions class object.
- Save output XLSX file.
The following code explains how to convert MPP to Excel XLSX format files with different options programmatically with C#:
Convert MPP to CSV File Programmatically with C#
CSV files are used to store comma-separated values. You can convert an MPP file to a CSV file while specifying different options like the text delimiter. Along with several properties exposed by CsvSaveOptions class, you can specify the delimiter as comma, semicolon, space, or tab, as per your requirements. Please follow the steps below for converting an MPP file to CSV programmatically in C#:
- Load the input MPP file using Project class.
- Initialize CsvOptions class instance.
- Save output CSV file.
The code below shows how to convert an MPP file to a CSV file programmatically using C#:
Get Free API License
You can test the API in full capacity by requesting a Free Temporary License.
In this article, you have learned how to convert Microsoft Project (MPP) file to Excel XLSX or CSV format file programmatically using C#. You can work with different features of the API in .NET-based applications where you can explore the features by visiting the Documentation. In case of any concerns, please feel free to contact us at the Free Support Forum.