HtmlSaveOptions Class
Represents the options for saving html file.
Inheritance Hierarchy

Namespace: Aspose.Cells
Assembly: Aspose.Cells (in Aspose.Cells.dll) Version: 19.10.0.0 (19.10)
Syntax
public class HtmlSaveOptions : SaveOptions

The HtmlSaveOptions type exposes the following members.

Constructors
  NameDescription
Public methodHtmlSaveOptions
Creates options for saving html file.
Public methodHtmlSaveOptions(SaveFormat)
Creates options for saving htm file.
Properties
  NameDescription
Public propertyAttachedFilesDirectory
The directory that the attached files will be saved to. Only for saving to html stream.
Public propertyAttachedFilesUrlPrefix
Specify the Url prefix of attached files such as image in the html file. Only for saving to html stream.
Public propertyCachedFileFolder
The cached file folder is used to store some large data.
(Inherited from SaveOptions.)
Public propertyCellCssPrefix
Gets and sets the prefix of the css name,the default value is "".
Public propertyClearData
Make the workbook empty after saving the file.
(Inherited from SaveOptions.)
Public propertyCreateDirectory
If true and the directory does not exist, the directory will be automatically created before saving the file.
(Inherited from SaveOptions.)
Public propertyDefaultFontName
Specify the default font name for exporting html, the default font will be used when the font of style is not existing, If this property is null, Aspose.Cells will use universal font which have the same family with the original font, the default value is null.
Public propertyDisableDownlevelRevealedComments
Indicates if disable Downlevel-revealed conditional comments when exporting file to html, the default value is false.
Public propertyEnableHTTPCompression
Indicates if http compression is to be used in user's IIS.
(Inherited from SaveOptions.)
Public propertyEncoding
If not set,use Encoding.UTF8 as default enconding type.
Public propertyExcludeUnusedStyles
Indicating whether excluding unused styles.The default value is false.If you want to import the html or mht file to excel, please keep the default value.
Public propertyExportActiveWorksheetOnly
Indicates if exporting the whole workbook to html file.
Public propertyExportBogusRowData
Indicating whether exporting bogus bottom row data. The default value is true.If you want to import the html or mht file to excel, please keep the default value.
Public propertyExportDataOptions
Indicating the rule of exporting html file data.The default value is All.
Public propertyExportDocumentProperties
Indicating whether exporting document properties.The default value is true.If you want to import the html or mht file to excel, please keep the default value.
Public propertyExportFrameScriptsAndProperties
Indicating whether exporting frame scripts and document properties. The default value is true.If you want to import the html or mht file to excel, please keep the default value.
Public propertyExportGridLines
Indicating whether exporting the gridlines.The default value is false.
Public propertyExportHiddenWorksheet
Indicating if exporting the hidden worksheet content.The default value is true.
Public propertyExportImagesAsBase64
Specifies whether images are saved in Base64 format to HTML, MHTML or EPUB.
Public propertyExportObjectListener Obsolete.
Gets or sets the ExportObjectListener for exporting objects.
Public propertyExportPrintAreaOnly
Indicates if only exporting the print area to html file. The default value is false.
Public propertyExportSimilarBorderStyle
Indicating whether exporting the similar border style when the border style is not supported by browsers. If you want to import the html or mht file to excel, please keep the default value. The default value is false.
Public propertyExportSingleTab
Indicates whether exporting the single tab when the file only has one worksheet. The default value is false.
Public propertyExportWorkbookProperties
Indicating whether exporting workbook properties.The default value is true.If you want to import the html or mht file to excel, please keep the default value.
Public propertyExportWorksheetCSSSeparately
Indicating whether export the worksheet css separately.The default value is false.
Public propertyExportWorksheetProperties
Indicating whether exporting worksheet properties.The default value is true.If you want to import the html or mht file to excel, please keep the default value.
Public propertyFilePathProvider
Gets or sets the IFilePathProvider for exporting Worksheet to html separately.
Public propertyHiddenColDisplayType
Hidden column(the width of this column is 0) in excel,before save this into html format, if HtmlHiddenColDisplayType is "Remove",the hidden column would ont been output, if the value is "Hidden", the column would been output,but was hidden,the default value is "Hidden"
Public propertyHiddenRowDisplayType
Hidden row(the height of this row is 0) in excel,before save this into html format, if HtmlHiddenRowDisplayType is "Remove",the hidden row would ont been output, if the value is "Hidden", the row would been output,but was hidden,the default value is "Hidden"
Public propertyHtmlCrossStringType
Indicates if a cross-cell string will be displayed in the same way as MS Excel when saving an Excel file in html format. By default the value is Default, so, for cross-cell strings, there is little difference between the html files created by Aspose.Cells and MS Excel. But the performance for creating large html files,setting the value to Cross would be several times faster than setting it to Default or Fit2Cell.
Public propertyImageOptions
Get the ImageOrPrintOptions object before exporting
Public propertyIsExpImageToTempDir
Indicates whether exporting image files to temp directory. Only for saving to html stream.
Public propertyIsExportComments
Indicates if exporting comments when saving file to html, the default value is false.
Public propertyIsFullPathLink
Indicating whether using full path link in sheet00x.htm,filelist.xml and tabstrip.htm. The default value is false.
Public propertyLinkTargetType
Indicating the type of target attribute in <a> link,The default value is HtmlLinkTargetType.Parent.
Public propertyMergeAreas
Indicates whether merge the areas of conditional formatting and validation before saving the file.
(Inherited from SaveOptions.)
Public propertyPageTitle
The title of the html page. Only for saving to html stream.
Public propertyParseHtmlTagInCell
Parse html tag in cell,like
,as cell value,or as html tag,default is true
Public propertyPdfExportImagesFolder
The physical folder where images will be saved when exporting a workbook to Aspose.Pdf XML format. Default is an empty string.
(Inherited from SaveOptions.)
Public propertyPresentationPreference
Indicating if html or mht file is presentation preference.The default value is false.if you want to get more beautiful presentation,please set the value to true.
Public propertyRefreshChartCache
Indicates whether refreshing chart cache data
(Inherited from SaveOptions.)
Public propertySaveFormat
Gets the save file format.
(Inherited from SaveOptions.)
Public propertySortNames
Indicates whether sorting defined names before saving file.
(Inherited from SaveOptions.)
Public propertyStreamProvider
Gets or sets the IStreamProvider for exporting objects.
Public propertyTableCssId
Gets and sets the prefix of the type css name such as tr,col,td and so on, they are contained in the table element which has the specific TableCssId attribute. The default value is "".
Public propertyValidateMergedAreas
Indicates whether validate merged cells before saving the file.
(Inherited from SaveOptions.)
Public propertyWarningCallback
Gets or sets warning callback.
(Inherited from SaveOptions.)
Public propertyWidthScalable
Indicates whether using scalable unit to describe the column width when exporting file to html. The default value is false.
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Fields
  NameDescription
Protected fieldm_SaveFormat (Inherited from SaveOptions.)
See Also