Convert Microsoft Project MPP file to JPEG

JPEG or JPG is a commonly image format which is using lossy compression. The degree of compression can be adjusted, allowing a selectable trade-off between storage size and image quality. Aspose.Tasks for .NET API lets you save MS Project MPP file to JPEG file format. You can also specify quality of the resulting image(-s).

Exporting Project Data to JPEG

To save a project to JPEG programmatically using Aspose.Tasks for .NET:

  1. Load a Microsoft Project MPP file.
  2. Optionally make changes to the loaded project.
  3. Save the project to JPEG using one of Project.Save method overloads. Your can pass either SaveFileFormat.JPEG to save project with default settings or pass ImageSaveOptions to customize export options.

The following article describes properties common for all graphical formats.

Also additional options specific to JPEG format can specified. For example, ImageSaveOptions.JpegQuality can be used to set quality of the resulting JPEG file..

Also, the horizontal and vertical resolution in dpi can be controlled using ImageSaveOptions.HorizontalResolution and ImageSaveOptions.VerticalResolution.

The code example given below demonstrates how to export your project data to JPEG.