XER and MPP files are widely used in project management and project planning applications. You might need to convert an XER file to MPP format in your Java applications. Considering such requirements, this article explains how to convert an XER file to MPP format programmatically in Java.
- XER to MPP Converter - Java API Configuration
- Convert XER to MPP in Java
- Convert XER to MPP Format with Advanced Options in Java
XER to MPP Converter - Java API Configuration
You can export an XER file to MPP format with Aspose.Tasks for Java API. It does not require any other application or tool to work with Microsoft Project file formats. You may either access the JAR file from the New Releases section or use the following Maven configurations in the pom.xml file of your project.
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>http://repository.aspose.com/repo/</url>
</repository>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-tasks</artifactId>
<version>22.11</version>
<classifier>jdk18</classifier>
</dependency>
Convert XER to MPP in Java
You can convert an XER file to an MPP file format with the steps below:
- Load the source XER file with an object of the Project class.
- Export the MPP file with the save() method.
The following code snippet demonstrates how to convert an XER file to MPP format in Java:
Convert XER to MPP Format with Advanced Options in Java
You can customize the XER to MPP file conversion by manipulating different properties. You need to follow the steps below:
- Load the input XER file with the Project class.
- Initialize an object of MPPSaveOptions class.
- Set different properties as per your requirements.
- Finally, export the MPP file with the save() method while specifying the SaveFileFormat parameter.
The code snippet below shows how to convert XER to MPP with advanced options programmatically in Java**.
Get a Free License
You may evaluate the API without any limitations by getting a free temporary license.
Conclusion
In this article, we have understood how to convert an XER file to MPP format with different approaches programmatically in Java. Furthermore, you can explore other features by visiting the documentation space. If you want to discuss any of your requirements or concerns, please write to us at forum.