Konvertieren Sie Microsoft Project MPP -Datei in Excel
Mit Microsoft Project kann der Benutzer die Daten des Projekts in Formate exportieren, die von Microsoft Excel unterstützt werden, wie z.
Dies sind Schritte zum Exportieren von Projektdaten in Excel -Formate:
Angenommen, Sie haben Ihr Projekt im Microsoft -Projekt eröffnet.
- Wählen Sie “Datei \ speichern als” Menüelement
- Wählen Sie den Speicherort (z. B. “dieser PC”)
- In “Dialog” speichern “Wählen Sie ‘Excel Workbook (. XLSX)’ oder ‘Excel 97-2003 Workbook (.xls)’ Format in” als Typ “speichern” Dropdown.
- Klicken Sie auf “Speichern”
- Wählen Sie im Export -Assistenten entweder “Project Excel -Vorlage” aus, um Standardeinstellungen anzuwenden, oder “Ausgewählte Daten”, um die Ausgabe anzupassen.
Wenn die Standardeinstellungen angewendet werden, sieht die Ausgabe -Excel -Arbeitsmappe wie folgt aus:
Sie können Microsoft Project MPP -Datei in Microsoft Excel -Tabellenkalkulationsdateiformate ( Spreadsheet2003 XML oder XLSX programmatisch mit ASSOSH.Tasks für .NET -API exportieren. In diesem Fall müssen Sie in diesem Fall kein Microsoft -Projekt auf Ihrer Maschine installieren lassen.
Konvertieren Sie MS -Projekt -MPP -Dateien in Tabelle2003 XML (Excel 2003)
Es gibt zwei Möglichkeiten, Projekte in Tabelle2003 XML -Format umzuwandeln. Der erste ist die Verwendung von SaveFileForformat Aufzählung. Der zweite ist die Verwendung von Tabelle2003Savoptions Klasse.
Um eine MP -Projekt -MPP -Datei in der Tabelle umzuwandeln2003 XML -Format mit Standardeinstellungen mit SaveFileFormat:
- Erstellen Sie eine neue Projektinstanz und laden Sie die MPP -Datei.
- Konvertieren Sie das Projekt mit Project.Save -Methode in die Tabelle2003 XML und geben Sie die SaveFileFileFileformat.Spreadsheet2003 als Argument an.
Die folgenden Codezeilen zeigen, wie dies in .NET erreicht werden kann:
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.
- Create a new project instance and load the MPP file.
- Create an instance of Spreadsheet2003SaveOptions.
- Customize view using properties of Spreadsheet2003SaveOptions class.
- 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:
- Create a new project instance and load the MPP file.
- 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.
- Create a new project instance and load the MPP file.
- Create an instance of XlsxOptions.
- Customize view using properties of XlsxOptions class.
- 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.