Convert MPP to XLSX using Python

This short guide explains how to convert MPP to XLSX using Python. It includes details on setting up the IDE, a list of programming steps, and sample code for transforming an MPP to Excel using Python. You will get further details to customize the output Excel file using various properties exposed by the API.

Steps to Convert MPP to Excel using Python

  1. Configure the development environment to use Aspose.Tasks for Python via .NET for creating an Excel file
  2. Apply the product license and load the source MPP file into the Project object
  3. Configure the XlsxOptions for saving the output XLSX file
  4. Add WBS and duration columns using the GanttChartColumn class object to the first default sheet
  5. Add a custom column in the resource view sheet of the new Excel file
  6. Add another custom notes column to the assignment view sheet of the XLSX file
  7. Save the resultant project file as an XLSX file using the above configurations

These steps summarize how to convert Microsoft Project to Excel using Python. Apply the product license, load an MPP file, create the output XLSX configuration object using the XlsxOptions, and add more columns for the first sheet in the resultant Excel file. Add custom columns in the resource view sheet and assignment view sheet, and save the resultant project file as an Excel file using the above-mentioned configurations.

Code to Convert MS Project to Excel using Python

This code demonstrates how to convert MPP file to Excel using Python. Set the text alignment for numeric and date columns for a better presentation in the output Excel file. You may also try a per-column cell style callback for highlighting the cells to flag critical or overdue tasks.

This guide describes the process to convert a Microsoft Project file to Excel. To create a work breakdown in the project, refer to the article Create a Work Breakdown Structure WBS using Python.