SaveOptionsPresentationFormat Property

Gets or sets the PresentationFormat in which the document will be saved.

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.11
public PresentationFormat PresentationFormat { get; set; }

Property Value

Type: PresentationFormat
Shows how to set a value indicating that subtasks on the summary task bar must be rolled up.
var project = new Project(DataDir + "Project2.mpp");

var options = new PdfSaveOptions
    PresentationFormat = PresentationFormat.GanttChart,
    ShowProjectSummaryTask = true,
    FitContent = true,
    RollUpGanttBars = true,

    // OR
    // options.RollUpGanttBars = false;
    // DrawNonWorkingTime = true,
    PageSize = PageSize.A3

project.Save(OutDir + "RenderGanttChartWithBarsRolledUp_out.pdf", options);
See Also