Convierta el archivo MPP de Microsoft Project a Excel
Microsoft Project permite al usuario exportar los datos del proyecto a formatos compatibles con Microsoft Excel como ( Hoja de cálculo de cálculo2003 XML o XLSX Formato).
Estos son pasos para exportar datos del proyecto a formatos de sobresalientes:
Supongamos que tiene su proyecto abierto en Microsoft Project.
- Seleccione el elemento de menú “Archivo \ Guardar como”
- Seleccione la ubicación (por ejemplo, “esta PC”)
- En “Guardar como” Diálogo Seleccionar ‘Excel Workbook (. Xlsx)’ o ‘Excel 97-2003 Formato de libro (.xls)’ en “guardar como tipo” desplegable.
- Haga clic en el botón “Guardar”
- En Exportar Asistente, seleccione “Plantilla de Excel de Project” para aplicar la configuración predeterminada o los “datos seleccionados” para personalizar la salida.
Si se aplican la configuración predeterminada, el libro de trabajo Excel de salida se verá de la siguiente manera:
Puede exportar el archivo MPP de Microsoft MPP a los formatos de archivo de hoja de cálculo de Microsoft Excel ( Hoja de cálculo de cálculo2003 XML o XLSX mediante programación utilizando Aspose.Tasks para .NET API. En este caso, no necesita tener un proyecto de Microsoft instalado en su máquina.
Convertir los archivos MPS MPP a Spreadsheet2003 XML (Excel 2003)
Hay dos formas de convertir proyectos en Hoja de cálculo de cálculo2003 XML Formato. El primero es usar saveFileFormat enumeración. El segundo es usar Hoja de cálculo2003SaveOptions Clase.
Para convertir un archivo MPP MSP MS en formato XML de hoja de calma2003 con configuración predeterminada usando SaveFileFormat:
- Cree una nueva instancia de proyecto y cargue el archivo MPP.
- Convierta el proyecto en la hoja de cálculo de la hoja de cálculo de XML utilizando el método Project.save y especifique el SaveFileFormat.sPreadSheet2003 como argumento.
Las siguientes líneas de código muestran cómo lograr esto en .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.
- 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.