Microsoft Project MPPファイルをExcelに変換します

Microsoft Projectを使用すると、ユーザーは Spreadsheet2003 XMLまたは XLSX形式など、Microsoft Excelがサポートするフォーマットにプロジェクトのデータをエクスポートできます。

これらは、プロジェクトデータをExcel形式にエクスポートする手順です。

Microsoft Projectでプロジェクトを開設したとします。

  1. 「ファイル\保存」を選択します。メニュー項目を選択します
  2. 場所を選択します(例:「このPC」)
  3. 「Save as」ダイアログ「Excel Workbook(。XLSX)」または「Excel 97-2003 Workbook(.xls)」の形式で「save as type」ドロップダウンの形式。
  4. [保存]ボタンをクリックします
  5. ウィザードのエクスポートで、「プロジェクトExcelテンプレート」のいずれかを選択して、デフォルト設定を適用するか、「選択したデータ」を適用して出力をカスタマイズします。

「保存」ダイアログの例

デフォルトの設定が適用されている場合、出力Excelワークブックは次のように見えます。

Excelワークブックにエクスポートされたプロジェクトの例

Microsoft Project MPPファイルをMicrosoft Excelスプレッドシートファイルフォーマット Spreadsheet2003 XMLまたは XLSXに.NET APIのASPOSE.TASKSをプログラム的にエクスポートできます。この場合、マシンにMicrosoftプロジェクトをインストールする必要はありません。

MSプロジェクトMPPファイルをSpreadsheet2003 XMLに変換する(Excel 2003)

プロジェクトを Spreadsheet2003 XML形式に変換するには、2つの方法があります。最初のものは、 savefileformat列挙を使用することです。 2つ目は、 spreadsheet2003saveoptionsクラスを使用することです。

savefileformatを使用してデフォルト設定を使用して、MSプロジェクトMPPファイルをスプレッドシートに変換するためにスプレッドシート2003 XML形式に変換するため。

  1. 新しいプロジェクトインスタンスを作成し、MPPファイルをロードします。
  2. Project.saveメソッドを使用してプロジェクトをSpreadSheet2003 XMLに変換し、savefileformat.spreadsheet2003を引数として指定します。

次のコード行は、.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.