HtmlSaveOptions Class

Allows to specify additional options when rendering project pages to HTML.
Inheritance Hierarchy

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.11
Syntax
public class HtmlSaveOptions : SaveOptions

The HtmlSaveOptions type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleHtmlSaveOptions
Initializes a new instance of the HtmlSaveOptions class.
Properties
  NameDescription
Public propertyCode exampleBarStyles
Gets or sets the list of the instances of the BarStyle class that appear in project view.
(Inherited from SaveOptions.)
Public propertyCode exampleCssSavingCallback
Gets or sets the callback that is called to create resource to store CSS.
Public propertyCode exampleCssStylePrefix
Gets or sets CSS style prefix.
Public propertyCode exampleDefaultFontName
Gets or sets the default font for rendering.
Public propertyCode exampleDrawNonWorkingTime
Gets or sets a value indicating whether non-working time should be drawn (Default value is TRUE).
(Inherited from SaveOptions.)
Public propertyCode exampleEndDate
Gets or sets a date to finish rendering to.
(Inherited from SaveOptions.)
Public propertyCode exampleExportCss
Gets or sets the way CSS are exported.
Public propertyCode exampleExportFonts
Gets or sets the way fonts are exported.
Public propertyCode exampleExportImages
Gets or sets the way images are exported.
Public propertyCode exampleFitContent
Gets or sets a value indicating whether row height should be increased to fit its content.
(Inherited from SaveOptions.)
Public propertyCode exampleFontFaceTypes
Gets or sets the font face types.
Public propertyCode exampleFontSavingCallback
Gets or sets the callback that is called to create resource to store font.
Public propertyCode exampleGridlines
Gets or sets a list of Gridline that appear in project view.
(Inherited from SaveOptions.)
Public propertyCode exampleImageSavingCallback
Gets or sets the callback that is called to create resource to store font.
Public propertyCode exampleIncludeProjectNameInPageHeader
Gets or sets a value indicating whether to include project name in HTML page header.
Public propertyCode exampleIncludeProjectNameInTitle
Gets or sets a value indicating whether to include project name in HTML title.
Public propertyCode exampleLegendOnEachPage
Gets or sets a value indicating whether legend should be shown on each page (Default value is TRUE).
(Inherited from SaveOptions.)
Public propertyCode exampleMarkCriticalTasks
Gets or sets a value indicating whether critical tasks should be displayed in red color (Default value is FALSE).
(Inherited from SaveOptions.)
Public propertyCode exampleNonWorkingTimeColor
Gets or sets the non-working time color.
(Inherited from SaveOptions.)
Public propertyCode examplePageCount
Gets or sets the number of pages of project.
(Inherited from SaveOptions.)
Public propertyCode examplePages
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.
Public propertyPageSavingCallback
Gets or sets a user-defined callback which is used to get an output stream for each rendered page.
Public propertyCode examplePageSize
Gets or sets the size of page to be rendered (Default value is PageSize.A4).
(Inherited from SaveOptions.)
Public propertyCode examplePresentationFormat
Gets or sets the PresentationFormat in which the document will be saved.
(Inherited from SaveOptions.)
Public propertyCode exampleReduceFooterGap
Gets or sets a value indicating whether a gap between last task and the footer must be reduced.
Public propertyCode exampleRollUpGanttBars
Gets or sets a value indicating whether subtasks on the summary task bar should be marked. For subtasks, the Rollup field indicates whether information on the subtask Gantt bars will be rolled up to the summary task bar. For summary tasks, the Rollup field indicates whether the summary task bar displays rolled up bars. You must have the Rollup field for summary tasks set to Yes for any subtasks to roll up to them.
(Inherited from SaveOptions.)
Public propertyCode exampleSaveFormat
Gets or sets the format in which the document will be saved if this save options object is used.
(Inherited from SaveOptions.)
Public propertyCode exampleStartDate
Gets or sets the date to start rendering from.
(Inherited from SaveOptions.)
Public propertyCode exampleTasksComparer
Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart.
(Inherited from SaveOptions.)
Public propertyCode exampleTasksFilter
Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.
(Inherited from SaveOptions.)
Public propertyCode exampleTextStyles
Gets or sets the list of the instances of the TextStyle class that appear in project view.
(Inherited from SaveOptions.)
Public propertyCode exampleTimescale
Gets or sets the Timescale value which is used to control how timescale (if present) is rendered when project is saved to graphical format.
(Inherited from SaveOptions.)
Public propertyCode exampleTimescaleTier Obsolete.
Gets or sets the timescale tier of the Gantt Chart view. The default value is null.
(Inherited from SaveOptions.)
Public propertyCode exampleUseGradientBrush
Gets or sets a value indicating whether to use gradient brush when rendering project layout.
Remarks
Currently using of gradient brush is not supported when rendering to HTML.
(Overrides SaveOptionsUseGradientBrush.)
Public propertyCode exampleUseProjectDefaultFont
Gets or sets a value indicating whether the default font must be used for rendering.
Public propertyCode exampleView
Gets or sets a list of the view columns to render (GanttChartColumn). If not set then task ids, task names, start and finish are rendered only.
(Inherited from SaveOptions.)
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
Shows how to save a project in HTML format.
var project = new Project(DataDir + "CreateProject2.mpp");
var option = new HtmlSaveOptions();
project.Save(OutDir + "SaveProjectDataAsHTML_out.html", option);

// OR

// Adding only one page (page number 2)
option = new HtmlSaveOptions();
option.Pages.Add(2);
project.Save(OutDir + "SaveProjectDataAsHTML2_out.html", option);
See Also