mpp to jpg

Convert MS Project (MPP) to JPG using .NET REST API.

Embarking on effective project communication often requires transcending the digital boundaries of conventional project management tools. The visual representation is key, and the capability to convert MS Project (MPP) files to JPG images becomes a pivotal asset. Imagine a scenario where the intricacies of your project plans are effortlessly translated into a visual format, allowing for clearer insights and enhanced collaboration. This article explores the remarkable capabilities of MS Project to JPG conversion using the .NET REST API.

REST API for MS Project Files Conversion

Aspose.Tasks Cloud SDK for .NET emerges as a game-changer, not only excelling in converting MS Project (MPP) files to JPG images, but also offering a suite of powerful features to elevate your project management experience. From dynamic Gantt chart generation to resource management, Aspose.Tasks Cloud empowers you with tools that go beyond simple conversions. Therefore, unlock the full potential of your project data through a comprehensive SDK that seamlessly integrates into your workflows.

In order to use the SDK in your project, please search Aspose.Tasks-Cloud in NuGet packages manager and click the Add Package button. This will add the SDK reference in your project. Secondly, obtain your client credentials from cloud dashboard.

In case you do not have an existing account, simply create a free account by following the instructions specified in the quick start article.

Convert MPP to JPG with C# .NET

Embark on effective project communication requiring you to transcend the digital boundaries of conventional project management tools and use C# .NET code snippet to accomplish this requirement.

TasksApi tasksApi = new TasksApi(clientSecret, clientID);

Create an object of TasksApi class while passing client credentials as input arguments.

GetTaskDocumentWithFormatRequest formatRequest = new GetTaskDocumentWithFormatRequest()
    Format = ProjectFileFormat.Jpeg,
    Name = inputFile

Create a Request instance where we specify the name of input MPP, resultant format as JPEG.

var output = tasksApi.GetTaskDocumentWithFormat(formatRequest);

Finally, call the API to convert MPP to JPG online and return the output in stream instance.

saveToDisk(finalResponse, resultant);

Our custom method providing the capability to save the resultant JPEG image on local drive.

mpp to jpg

Preview of MPP to JPEG conversion with .NET REST API.

The sample MPP file used in the above example can be downloaded from Home move plan.mpp.

MS Project (MPP) to JPG using cURL Commands

Harness the flexibility and control offered by Aspose.Tasks Cloud through cURL commands. These commands not only facilitate a seamless conversion process but also unveil the true potential of Aspose.Tasks Cloud. With cURL commands, you gain command-line access to the robust capabilities of the cloud-based SDK, allowing for a versatile and efficient workflow. Furthermore, this approach brings forth a new level of customization and automation to your project management tasks.

Now, the first step in this approach is to generate a JWT access token using the following command:

curl -v "" \
 -X POST \
 -d "grant_type=client_credentials&client_id=163c02a1-fcaa-4f79-be54-33012487e783&client_secret=c71cfe618cc6c0944f8f96bdef9813ac" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Accept: application/json"

Please execute the following command to export MS Project (MPP) file to JPEG raster image.

curl -X GET "{sourceMPP}/format?format=jpeg" \
-H  "accept: multipart/form-data" \
-H  "authorization: Bearer <accessToken>" \
-o Resultant.jpeg

Replace sourceMPP with the name of input MPP file available in Cloud storage and, replace accessToken with JWT access token generated above.


In conclusion, whether you opt for the straightforward convenience of MPP to JPG conversion using Aspose.Tasks Cloud for .NET or embark on the command-line journey with cURL commands, the result remains the same—efficiency, reliability, and a wealth of possibilities. Aspose.Tasks Cloud stands as a testament to modern project management, offering a seamless transition between formats with its user-friendly SDK and command-line capabilities.

We highly recommend visiting the following blogs: