Rendering Task Usage View

Aspose.Tasks for .NET supports rendering project tasks to a variety of formats, such as PDF. Task usage can be rendered using PresentationFormat of Aspose.Tasks with different timescale settings like Days, ThirdOfMonths and Months.

Rendering Task Usage View

The code snippet in this article reads a source MPP file that has a number of tasks with assigned resources and renders these to output PDF using the following steps:

  1. Create an instance of the Project class.
  2. Read the source MPP file.
  3. Initiate the SaveOptions object with required timescale settings.
  4. Set the presentation format to TaskUsage.
  5. Render the project to PDF output.

Rendering Details Column to Output in Task Usage View

Details column included in the MPP file can be rendered to the output using the View’s DisplayDetailsHeaderColumn property. This includes the list of following supported fields:

  • Work
  • Actual Work
  • Actual Overwork time
  • Baseline Work
  • Baseline 1-10 Work

The following code sample illustrates the usage of this property.