
Aspose.Tasks for .NET
.NET API to Create & Convert Microsoft Project Files
A Versatile C# Library Designed to Work with Microsoft Project Files. It enables Developers to Create, Edit, Manipulate, and Convert Microsoft Project Data to PDF, XPS, Images & more inside .NET apps.
What is Aspose.Tasks for .NET?
In the fast-moving world of business today, making sure your projects are managed well is key to achieving success. Whether you’re running a small startup or a big company, having a solid plan, keeping track of progress, and executing tasks efficiently are vital to staying ahead in your industry. That’s where Aspose.Tasks for .NET csteps in, providing a complete solution designed to cater to the various requirements of project managers and developers. You can use the API to create personalized project management tools that suit your organization’s specific needs. With Aspose.Tasks, developers have the ability to use code to make, read, and change project files. This helps in automating tasks that are done repeatedly, boosting efficiency.
Aspose.Tasks for .NET is a powerful tool for .NET developers, allowing them to easily add project management features to their software. Whether you’re working on a project management app, a scheduling tool, or a reporting dashboard, this API offers a wide range of functions to simplify your development work. One of the standout features of Aspose.Tasks is its ability to work with a variety of project file formats, including MPP, XML, and MPX. In addition to its robust feature set, it boasts extensive documentation and a vibrant community of developers who are readily available to offer support and guidance. Whether you need to update task schedules, assign resources, or figure out project costs, this tool provides various ways to manage projects effectively. Its adaptability, simple integration, and robust functions make it a popular option for enhancing your project management capabilities.
Getting Started with Aspose.Tasks for .NET
The recommend way to install Aspose.Tasks for .NET is via NuGet. Please use the following commands for a smooth installation.
Install Aspose.Tasks for .NET via NuGet
NuGet\Install-Package Aspose.Tasks -Version 24.1.0
You can download the directly from Aspose.Tasks Release pageRead & Write Project Files via C#
Aspose.Tasks for .NET allows software developers to effortlessly read and write project files without having Microsoft Project installed. The API supports reading and writing project files in various formats such as MPP, XML, and MPX inside their .NET Applications. Software developers can programmatically create, read, and modify project files, enabling them to automate repetitive tasks and improve productivity. With just a couple of lines C# code software developers can open an existing project files as well as create a new file. Here's a simple example demonstrating how to create an empty project file and save it in MPP file formats using .NET code.
How to Create an Empty Project File and Save It in MPP File Formats via .NET API?
// there is no more need to load MPP template to save it into MPP
// add tasks, resources, etc.
Project project = new Project();
// !The project will be saved into MPP by using internal MPP template.
project.Save("New Project.mpp", SaveFileFormat.MPP);
Convert Project Data to Other File Formats via C#
Aspose.Tasks for .NET has provided complete functionality for loading and converting project data to various other supported file formats inside C# .NET applications. The API supports conversion to PDF, XLSX, CSV, TXT, MPT, JPEG, PNG, BMP, HTML and many other file formats. The following example demonstrates how software developers can convert project data to multiple PDF files inside .NET applications.
How to Export Project Data to Multiple PDF Files via .NET API?
Project project = new Project("New Project.mpp");
PdfSaveOptions options = new PdfSaveOptions();
options.SaveToSeparateFiles = true;
options.Pages = new List();
options.Pages.Add(1);
options.Pages.Add(4);
project.Save("SaveToMultiplePDFFiles_out.pdf", (SaveOptions)options);
Create Professional Reports via C# API
Another key strength of Aspose.Tasks for .NET is its advanced reporting capabilities. Software Developers can generate insightful reports and visualizations using data extracted from project files, helping stakeholders make informed decisions and track project progress in real-time. Whether its Gantt charts, resource histograms, or task timelines, Aspose.Tasks provides the tools necessary to create professional-looking reports with ease.
Working with Project Tasks using C#
With Aspose.Tasks for .NET, Software developers can easily create, update, and manage tasks and resources within a project using .NET API. Moreover, the API allows users to define and manage task dependencies within a project. There are several important features part of the library for working with project tasks, such as split tasks, calculate the finishing date of a split task, manage estimated and milestone tasks, manage critical and effort-driven tasks, writing updated task data to MPP, reading task Timephased data and many more. The following example shows how software developers can create tasks and subtask using C# commands.
Create Tasks and Subtask inside .NET Applications.
Project project = new Project();
// Add task, sub task and save project
Task task = project.RootTask.Children.Add("Summary1");
Task subtask = task.Children.Add("Subtask1");
project.Save("CreateTasks_out.xml", SaveFileFormat.XML);