Convertir le fichier MPROSOFT Project MPP en Excel

Microsoft Project permet à l’utilisateur d’exporter les données du projet aux formats pris en charge par Microsoft Excel tels que ( Spreadsheet2003 XML ou xlsx format).

Ce sont des étapes pour exporter les données du projet vers des formats Excel:

Supposons que votre projet soit ouvert dans le projet Microsoft.

  1. Sélectionnez “File \ Enregistrer sous” Élément de menu
  2. Sélectionnez l’emplacement (par exemple “ce PC”)
  3. Dans “Enregistrer” Dialog Select ‘Excel Workbook (. XLSX)’ ou ‘Format’ Excel 97-2003 ( .xls) ‘Format “Enregistrer sous” Enregistrer “.
  4. Cliquez sur le bouton “Enregistrer”
  5. Dans l’assistant d’exportation, sélectionnez “Projet Excel Template” pour appliquer les paramètres par défaut ou “Données sélectionnées” pour personnaliser la sortie.

Exemple de dialogue “Enregistrer sous”

Si les paramètres par défaut sont appliqués, le classeur EXCEL de sortie ressemblera comme suit:

Exemple de projet exporté vers Excel Workbook

Vous pouvez exporter le fichier Microsoft Project MPP vers les formats de fichiers de feuille de calcul Microsoft Excel ( Spreadsheet2003 XML ou XLSX Utilisation par programme en utilisant Aspose.Tasks pour .NET API. Dans ce cas, vous n’avez pas besoin de faire installer le projet Microsoft sur votre machine.

Convertir les fichiers MP MP MPP en Spreadsheet2003 XML (Excel 2003)

Il existe deux façons de convertir les projets au format Spreadsheet2003 XML. Le premier consiste à utiliser l’énumération SaveFileFormat. La seconde consiste à utiliser la classe Spreadsheet2003SaveOptions.

Afin de convertir un fichier MS Project MPP en format XML Spreadsheet2003 avec des paramètres par défaut en utilisant SaveFileFormat:

  1. Créez une nouvelle instance de projet et chargez le fichier MPP.
  2. Convertissez le projet en Spreadsheet2003 XML à l’aide de la méthode Project.Save et spécifiez le SaveFileFormat.SpreadSheet2003 comme argument.

Les lignes de code suivantes montrent comment y parvenir dans .NET:

To convert MPP files with a non-default settings the Spreadsheet2003SaveOptions class can be used. With this class one can specify additional options to customize the resulting Spreadsheet2003 XML.

  1. Create a new project instance and load the MPP file.
  2. Create an instance of Spreadsheet2003SaveOptions.
  3. Customize view using properties of Spreadsheet2003SaveOptions class.
  4. Convert the project to Excel using Project.Save method and pass the Spreadsheet2003SaveOptions instance as the argument.

Presented below is .NET example showing how to use the convert options:

Convert MS Project MPP files to Excel XSLX (Excel 2007 and later)

The Project class exposes the Save method which is used to save a project in various formats. The Project.Save method allows you to export project tasks, resources and assignments to separate worksheets to Microsoft Excel XLSX format using the SaveFileFormat enumeration type or the XlsxOptions class.

In order to convert MS Project MPP file to XLSX format with default settings using SaveFileFormat:

  1. Create a new project instance and load the MPP file.
  2. Convert the project to Excel XLSX using Project.Save method and specify the SaveFileFormat.XLSX as the argument.

The following lines of code show how to achieve this in .NET:

To convert MPP files with a non-default settings the XlsxOptions class is provided. With this class one can specify additional options to customize the resulting XLSX file.

  1. Create a new project instance and load the MPP file.
  2. Create an instance of XlsxOptions.
  3. Customize view using properties of XlsxOptions class.
  4. Convert the project to Excel using Project.Save method and pass the XlsxOptions instance as the argument.

Presented below is .NET example showing how to use the options:

Converting MS Project MPP file as CSV

In order to learn how to export MS Project MPP file to CSV please read the article.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.