C++ API to Process Project Files
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
A standalone C++ library that enables the C++ developers to generate, update, render, & convert project files from within C++ projects without Microsoft Project®.
Project File Processing Features
- Create an empty project file and save it as XML, to stream or to Microsoft MPP file.
- Supports the encoding of the
MPX
files.
- Read and write default properties of projects to speed up the project setup.
- Set the project calculation mode to be manual, automatic, or none.
- Read and write project calendar properties, such as fiscal year and weekday properties.
- Read and write project currency properties.
- Perform project rescheduling from start, finish date or reschedule only the incomplete tasks.
- Offers various project utility features, such as, calculate the critical path, read filter data, extract embedded objects, etc.
- Use Task, Resource, and Project fields as a formula in expressions.
- Identify Cross Project Tasks, get predecessor tasks and cross-project predecessor tasks.
- Supports working with task links, baselines, project resources, and VBA.
- Convert project data to other supported file formats.
Microsoft Project: MPP, MPT, XML
Primavera: MPX, P6XML, XER
Save Projects As
Microsoft Office: XLSX
Fixed Layout: PDF
Images: TIFF, SVG, PNG, JPEG
Web: HTML
Text: TXT
Get Started
Are you ready to give Aspose.Tasks for C++ a try? Simply execute Install-Package Aspose.Tasks.Cpp
from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Tasks for C++ and want to upgrade the version, please execute Update-Package Aspose.Tasks.Cpp
to get the latest version.
Convert Microsoft Project MPP Data to HTML
Try executing the below code to see how Aspose.Tasks for C++ performs in your environment. You may also check the GitHub Repository for other common usage scenarios.
System::SharedPtr<Project> project = System::MakeObject<Project>(u"template.mpp");
System::SharedPtr<HtmlSaveOptions> option = System::MakeObject<HtmlSaveOptions>();
project->Save(u"output.html", option);
Create Project from Scratch using C++
// Create a project instance
System::SharedPtr<Project> project = System::MakeObject<Project>();
// Add task, sub-task and save the project
System::SharedPtr<Task> task = project->get_RootTask()->get_Children()->Add(u"Summary1");
System::SharedPtr<Task> subtask = task->get_Children()->Add(u"Subtask1");
project->Save(u"output.xml", Aspose::Tasks::Saving::SaveFileFormat::XML);
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License