Reporting Services
Contents
[
Hide
Show
]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:
- the PDF file name, and
- the ReportType enumerator.
Aspose.Tasks for C++ Reporting Services
Types of Report
The following types of report can be created using Aspose.Tasks:
- Project overview
- Resource cost overview
- Cost overview
- Work overview
- Critical tasks
- Milestones
- Late tasks
- Resource overview
- Cost overruns
- Upcoming task
- Task cost overview
- Over-allocated resources
- Slipping tasks
- Best practice analyzer
- Burndown
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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);