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.
Project
class and load the input file through its constructorProject.Save
method with the output format as the 1st parameterSaveFileFormat.PDF
to use default PDF settingsPdfSaveOptions
classGet the respective assembly files from the downloads or fetch the package from NuGet to add Aspose.Tasks
directly in your workspace.
PdfSaveOptions
class to tweak PDF output settingsPdfSaveOptions
ViewSettings
Comprehensive documentation is available at Aspose.Tasks for .NET Documentation. Here developers can find examples, API references, and best practices.
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.
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.
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.
.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.
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.
It supports various views in Microsoft Project, including ‘Gantt Chart’, ‘Task Usage’, ‘Resource Usage’, and more.