Convert Primavera XER to SVG using C#

Primavera P6 is a popular project management software that uses the XER file format to store project data. SVG, or Scalable Vector Graphics, is a popular vector image format that can be used to create scalable graphics for web and print applications. In certain cases, we may need to export Primavera P6 project data from the XER file to SVG programmatically. In this blog post, we will learn how to convert XER to SVG in C#.

This article covers the following topics:

  1. C# API to convert XER to SVG
  2. Convert XER to SVG
  3. Convert XER to SVG with the options
  4. XER to SVG converter - try online
  5. Free learning resources

C# API to Convert XER to SVG

We will use the Aspose.Tasks for .NET API to convert Primavera XER to SVG using C#. It is a powerful API that allows developers to read, write, and manipulate Microsoft Project (MPP/XML) files without using Microsoft Project software. It provides the ability to manipulate calendars and work schedules, manage project extended attributes, and generate reports in a variety of formats.

Please download the DLL of the API or install it using NuGet.

PM> Install-Package Aspose.Tasks

Convert XER to SVG using C#

We can easily export the Primavera P6 project data from the XER file into an SVG format by following the steps below:

  1. Load the XER file using the Project class.
  2. Call the Save() method to save as an SVG. It takes the output SVG file path and the SaveFileFormat as arguments.

The following sample code shows how to convert XER to SVG in C#.

Convert XER to SVG using C#

Convert XER to SVG using C#.

Convert XER to SVG with Options using C#

We can customize the conversion of XER to SVG using the SvgOptoins class by following the steps below:

  1. Load the XER file using the Project class.
  2. Create an instance of the SvgOptions class.
  3. After that, define the SVG options, such as PageSize, etc.
  4. Finally, save the project as an SVG file using the Save() method. It takes the output SVG file path and the SvgOptions as arguments.

The following sample code shows how to convert XER to SVG with customized settings in C#.

Convert XER to SVG with Options using C#

Convert XER to SVG with Options using C#.

Get a Free License

Please get a free temporary license to try the library without evaluation limitations.

XER to SVG Converter Online

You may also convert XER files to SVG format using this free online XER to SVG converter, developed using the above API.

XER to SVG – Free Learning Resources

Besides converting XER to SVG programmatically in C#, explore other library features using the following resources:

Conclusion

In this blog post, we have learned how to convert XER to SVG in C#. By following the steps outlined in this article, you can easily convert XER files into SVG format programmatically. Aspose.Tasks for .NET is a powerful and versatile tool that can be used to solve a wide variety of project management challenges. It is a valuable asset for any developer who needs to work with Microsoft Project files. Besides converting XER to SVG in C#, you can also convert XER files online using a free web-based converter. In case of any ambiguity, please feel free to contact us at our free support forum.

See Also