Reporting Services

Aspose.Tasks for C++ API provides reporting services for creating reports from project files similar to Microsoft Project. The SaveReport function is used to create PDF files containing the report’s images. This function takes two arguments:

  1. the PDF file name, and
  2. the ReportType enumerator.

Aspose.Tasks for C++ Reporting Services

Types of Report

The following types of report can be created using Aspose.Tasks:

  1. Project overview
  2. Resource cost overview
  3. Cost overview
  4. Work overview
  5. Critical tasks
  6. Milestones
  7. Late tasks
  8. Resource overview
  9. Cost overruns
  10. Upcoming task
  11. Task cost overview
  12. Over-allocated resources
  13. Slipping tasks
  14. Best practice analyzer
  15. Burndown
  16. Cash flow

The sample code snippets below can be used to create these reports. All the sample MPP files used in these examples are present as attachments for testing the sample code.

Project Overview

exported project overview report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Cyclic stucture.mpp");
2project1->SaveReport(dataDir + u"ProjectOverView_out.pdf", Aspose::Tasks::Visualization::ReportType::ProjectOverview);

Resource Cost Overview

exported resource cost overview report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"OzBuild 16 Orig.mpp");
2project1->SaveReport(dataDir + u"ResourceCostOverview_out.pdf", Aspose::Tasks::Visualization::ReportType::ResourceCostOverview);

Cost Overview

exported cost overview report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"OzBuild 16 Orig.mpp");
2project1->SaveReport(dataDir + u"CostOverview_out.pdf", Aspose::Tasks::Visualization::ReportType::CostOverview);

Work Overview

exported work overview report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Residential Construction.mpp");
2project1->SaveReport(dataDir + u"WorkOverview_out.pdf", Aspose::Tasks::Visualization::ReportType::WorkOverview);

Critical Tasks

exported critical tasks report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Residential Construction.mpp");
2project1->SaveReport(dataDir + u"CriticalTasks_out.pdf", Aspose::Tasks::Visualization::ReportType::CriticalTasks);

Milestones

exported milestones report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Residential Construction.mpp");
2project1->SaveReport(dataDir + u"Milestones_out.pdf", Aspose::Tasks::Visualization::ReportType::Milestones);

Late Tasks

exported late tasks report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Residential Construction.mpp");
2project1->SaveReport(dataDir + u"LateTasks_out.pdf", Aspose::Tasks::Visualization::ReportType::LateTasks);

Resource Overview

exported resource overview report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Software Development Plan.mpp");
2project1->SaveReport(dataDir + u"ResourceOverview_out.pdf", Aspose::Tasks::Visualization::ReportType::ResourceOverview);

Cost Overruns

exported cost overruns report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Software Development.mpp");
2project1->SaveReport(dataDir + u"CostOverruns_out.pdf", Aspose::Tasks::Visualization::ReportType::CostOverruns);

Upcoming Task

exported upcoming task report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"UpcomingTasks.mpp");
2project1->SaveReport(dataDir + u"UpcomingTasks_out.pdf", Aspose::Tasks::Visualization::ReportType::UpcomingTask);

Task Cost Overview

exported task cost overview report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Software Development.mpp");
2project1->SaveReport(dataDir + u"TaskCostOverview_out.pdf", Aspose::Tasks::Visualization::ReportType::TaskCostOverview);

Over-allocated Resources

exported over-allocated resources report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Software Development Plan.mpp");
2project1->SaveReport(dataDir + u"OverAllocatedResources_out.pdf", Aspose::Tasks::Visualization::ReportType::OverallocatedResources);

Slipping Tasks

exported slipping report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Homemoveplan.mpp");
2project1->SaveReport(dataDir + u"SlippingTasks_out.pdf", Aspose::Tasks::Visualization::ReportType::SlippingTasks);

Best Practice Analyzer

exported best practice report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Cyclic stucture.mpp");
2project1->SaveReport(dataDir + u"BestPracticeAnalyzer_out.pdf", Aspose::Tasks::Visualization::ReportType::BestPracticeAnalyzer);

Burn Down

exported practice analyzer report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"Homemoveplan.mpp");
2project1->SaveReport(dataDir + u"Burndown_out.pdf", Aspose::Tasks::Visualization::ReportType::Burndown);

Cash Flow

exported burndown report example C++

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"OzBuild 16 Orig.mpp");
2project1->SaveReport(dataDir + u"CashFlow_out.pdf", Aspose::Tasks::Visualization::ReportType::CashFlow);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.