Reporting Services
Contents
[
Hide
Show
]Aspose.Tasks for .NET 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("New Project.mpp");
2project.SaveReport("ProjectOverView_out.pdf", ReportType.ProjectOverview);
Resource Cost Overview
1Project project = new Project("New Project.mpp");
2project.SaveReport("ResourceCostOverview_out.pdf", ReportType.ResourceCostOverview);
Cost Overview
1Project project = new Project("New Project.mpp");
2project.SaveReport("CostOverview_out.pdf", ReportType.CostOverview);
Work Overview
1Project project = new Project("New Project.mpp");
2project.SaveReport("WorkOverview_out.pdf", ReportType.WorkOverview);
Critical Tasks
1Project project = new Project("New Project.mpp");
2project.SaveReport("CriticalTasks_out.pdf", ReportType.CriticalTasks);
Milestones
1Project project = new Project("New Project.mpp");
2project.SaveReport("Milestones_out.pdf", ReportType.Milestones);
Late Tasks
1Project project = new Project("New Project.mpp");
2project.SaveReport("LateTasks_out.pdf", ReportType.LateTasks);
Resource Overview
1Project project = new Project("Software Development Plan.mpp");
2project.SaveReport("ResourceOverview_out.pdf", ReportType.ResourceOverview);
Cost Overruns
1Project project = new Project("Software Development.mpp");
2project.SaveReport("CostOverruns_out.pdf", ReportType.CostOverruns);
Upcoming Task
1Project project = new Project("New Project.mpp");
2project.SaveReport("UpcomingTasks_out.pdf", ReportType.UpcomingTask);
Task Cost Overview
1Project project = new Project("New Project.mpp");
2project.SaveReport("TaskCostOverview_out.pdf", ReportType.TaskCostOverview);
Over-allocated Resources
1Project project = new Project("Software Development Plan.mpp");
2project.SaveReport("OverAllocatedResources_out.pdf", ReportType.OverallocatedResources);
Slipping Tasks
1Project project = new Project("New Project.mpp");
2project.SaveReport("SlippingTasks_out.pdf", ReportType.SlippingTasks);
Best Practice Analyzer
1Project project = new Project("Cyclic structure.mpp");
2project.SaveReport("BestPracticeAnalyzer_out.pdf", ReportType.BestPracticeAnalyzer);
Burn Down
1Project project = new Project("Homemoveplan.mpp");
2project.SaveReport("Burndown_out.pdf", ReportType.Burndown);
Cash Flow
1Project project = new Project("New Project.mpp");
2project.SaveReport("CashFlow_out.pdf", ReportType.CashFlow);