HtmlSaveOptionsPages Property

Gets or sets a list of page numbers to save when rendering project layout.
Remarks
All project pages will be saved if this list is empty.

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.5
Syntax
public List<int> Pages { get; set; }

Property Value

Type: ListInt32
Examples
Shows how to set page HTML header/title by using <see cref="P:Aspose.Tasks.Saving.HtmlSaveOptions" /> options.
var project = new Project(DataDir + "CreateProject2.mpp");
var options = new HtmlSaveOptions
{
    // Determines whether to include project name in HTML title (true by default)
    IncludeProjectNameInTitle = false,

    // Determines whether to include project name in HTML page header  (true by default)
    IncludeProjectNameInPageHeader = false,

    // set pages that will be exported
    Pages = new List<int>
            {
                1
            }
};
project.Save(OutDir + "ControlHeaderNameDuringHTMLExport_out.html", options);
See Also