English
  1. Products
  2.   Aspose.Tasks
  3.   Project to PDF Converter

.NET MPP to PDF Converter

Convert Microsoft Project MPP files to PDF with just a few lines of C# .NET code

Aspose.Tasks Project to PDF Converter for .NET

Aspose.Tasks for .NET is a powerful library providing developers with tools to efficiently work with Microsoft Project files (.MPP) in a .NET environment. It offers features such as converting MPP files to various formats, including PDF, without requiring Microsoft Project installation.

How to Convert MPP to PDF via .NET?

  • Reference Aspose.Tasks in your project
  • Set your license keys
  • Create an instance of the Project class and load the input file through its constructor
  • Call the Project.Save method with the output format as the 1st parameter
  • Set the 2nd parameter as SaveFileFormat.PDF to use default PDF settings
  • Optionally, customize export options using the PdfSaveOptions class

Get MPP to PDF Converter Plugin

Get the respective assembly files from the downloads or fetch the package from NuGet to add Aspose.Tasks directly in your workspace.

  • Supported Operating Systems include Windows, Linux, Mac (OS X)
  • Supported Frameworks include .NET Frameworks (3.5, 4.0, 4.0 Client Profile, 4.5 - 4.8, Standard 2.0, Core 2.0 - 3.1, 5, 6), Mono Framework (2.6.7 or later)
  • Microsoft Visual Studio, MonoDevelop


Advanced Export Options

  • Utilize the PdfSaveOptions class to tweak PDF output settings
  • Control page size, margins, and scaling using properties within PdfSaveOptions
  • Specify the initial view of the PDF document upon opening by setting ViewSettings

Project Documentation

Comprehensive documentation is available at Aspose.Tasks for .NET Documentation. Here developers can find examples, API references, and best practices.


Customize MPP to PDF Conversion for Optimal Content Fit

Task or resource names are often too long and get cut off when project views are displayed. To prevent this, Aspose.Tasks Project2PDF Converter plugin offers the FitContent property in the SaveOptions class. The following code example demonstrates rendering a project to PDF format with the FitContent property set to true, ensuring complete visibility of task and resource names.


Enhance MS Project to PDF Conversion by Customizing Text Styles

Developers using the Aspose.Tasks Project2PDF Converter can tweak the text style for over-allocated resources. By default, overallocated resources have a style similar to Microsoft Project (MSP), featuring red and bold formatting. Utilizing TextItemType.OverallocatedResources enables customization of both color and style for these overallocated resources.


Frequently Asked Questions

Is Project2PDF Converter suitable for different types of .NET applications?

Yes, it can be used to build various types of 32-bit or 64-bit .NET applications, including ASP.NET, WCF, WinForms, WPF, and more. It also supports development with Mono for applications on Linux, Mac, and can be used via COM Interop from ASP, Perl, PHP, and Python.

How can I customize the appearance of the exported PDF?

.NET plugin allows customization of various aspects, such as text style for over-allocated resources, date formats, and default font settings. Developers can use the provided API to tailor the appearance of the exported PDF documents.

Can I explicitly specify a View object for PDF export?

Yes, you have the option to use SaveOptions.ViewSettings to explicitly specify the View object for rendering in the PDF. If a View object is specified, the value of SaveOptions.PresentationFormat is ignored, providing more flexibility in choosing the desired view for export.

What types of Microsoft Project views are supported?

It supports various views in Microsoft Project, including ‘Gantt Chart’, ‘Task Usage’, ‘Resource Usage’, and more.

  

Support and Learning Resources

  
 English