Reporting Services
Contents
[
Hide
Show
]Aspose.Tasks for Java 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 Reporting Services
Types of Report
The following types of reports 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
- Burn down
- 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
1Project project = new Project("Cyclic structure.mpp");
2project.saveReport("ProjectOverView.pdf", ReportType.ProjectOverview);
Resource Cost Overview
1Project project = new Project("OzBuild 16 Orig.mpp");
2project.saveReport("ResourceCostOverview.pdf", ReportType.ResourceCostOverview);
Cost Overview
1Project project = new Project("OzBuild 16 Orig.mpp");
2project.saveReport("CostOverview.pdf", ReportType.CostOverview);
Work Overview
1Project project = new Project("Residential Construction.mpp");
2project.saveReport("WorkOverview.pdf", ReportType.WorkOverview);
Critical Tasks
1Project project = new Project("Residential Construction.mpp");
2project.saveReport("CriticalTasks.pdf", ReportType.CriticalTasks);
Milestones
1Project project = new Project("Residential Construction.mpp");
2project.saveReport("Milestones.pdf", ReportType.Milestones);
Late Tasks
1Project project = new Project("Residential Construction.mpp");
2project.saveReport("LateTasks.pdf", ReportType.LateTasks);
Resource Overview
1Project project = new Project("Software Development Plan.mpp");
2project.saveReport("ResourceOverview.pdf", ReportType.ResourceOverview);
Cost Overruns
1Project project = new Project("Software Development.mpp");
2project.saveReport("CostOverruns.pdf", ReportType.CostOverruns);
Upcoming Task
1Project project = new Project("UpcomingTasks.mpp");
2project.saveReport("UpcomingTasks.pdf", ReportType.UpcomingTask);
Task Cost Overview
1Project project = new Project("Software Development.mpp");
2project.saveReport("TaskCostOverview.pdf", ReportType.TaskCostOverview);
Over-allocated Resources
1Project project = new Project("Software Development Plan.mpp");
2project.saveReport("OverAllocatedResources.pdf", ReportType.OverallocatedResources);
Slipping Tasks
1Project project = new Project("Cyclic structure.mpp");
2project.saveReport("SlippingTasks.pdf", ReportType.SlippingTasks);
Best Practice Analyzer
1Project project = new Project("Cyclic structure.mpp");
2project.saveReport("BestPracticeAnalyzer.pdf", ReportType.BestPracticeAnalyzer);
Burn Down
1Project project = new Project("Cyclic structure.mpp");
2project.saveReport("Burndown.pdf", ReportType.Burndown);
Cash Flow
1Project project = new Project("OzBuild 16 Orig.mpp");
2project.saveReport("CashFlow.pdf", ReportType.CashFlow);