Rendering Task Sheet View
Contents
[
Hide
Show
]Aspose.Tasks for .NET supports rendering project tasks to a variety of formats, such as PDF. Task sheets can be rendered using PresentationFormat of Aspose.Tasks for .NET API.
Rendering Task Sheet 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:
- Create an instance of the Project class.
- Read the source MPP file.
- Initiate the SaveOptions object with required timescale settings.
- Set the presentation format to TaskSheet.
- Render the project to PDF output.
1Project project = new Project("New Project.mpp");
2
3// Set presentation format Task Sheet and save project as PDF
4SaveOptions options = new PdfSaveOptions();
5options.PresentationFormat = PresentationFormat.TaskSheet;
6project.Save("TaskSheetView_out.pdf", options);