Methods

new HtmlSaveOptions()

Creates options for saving html file.

Methods

constructor_overload$1(format)

Creates options for saving htm file.

Parameter

Name Type Optional Description

format

Number

 

SaveFormat

getAddTooltipText()

Indicates whether adding tooltip text when the data can't be fully displayed. The default value is false.

getAttachedFilesDirectory()

The directory that the attached files will be saved to. Only for saving to html stream.

getAttachedFilesUrlPrefix()

Specify the Url prefix of attached files such as image in the html file. Only for saving to html stream.

getCachedFileFolder()

The cached file folder is used to store some large data.

getCellCssPrefix()

Gets and sets the prefix of the css name,the default value is "".

getClearData()

Make the workbook empty after saving the file.

getCreateDirectory()

If true and the directory does not exist, the directory will be automatically created before saving the file. The default value is false.

getDefaultFontName()

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.

getDisableDownlevelRevealedComments()

Indicates if disable Downlevel-revealed conditional comments when exporting file to html, the default value is false.

getEnableHTTPCompression()

Indicates if http compression is to be used in user's IIS. Please specify this property to true if http compression is used.

getEncoding()

If not set,use Encoding.UTF8 as default enconding type.

getExcludeUnusedStyles()

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.

getExportActiveWorksheetOnly()

Indicates if exporting the whole workbook to html file.

getExportArea()

Gets or Sets the exporting CellArea of current active Worksheet. If you set this attribute, the print area of current active Worksheet will be omitted. Only the specified area will be exported when saving the file to html.

getExportBogusRowData()

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.

getExportCellCoordinate()

Indicates whether exporting excel coordinate of nonblank cells when saving file to html. The default value is false. If you want to import the output html to excel, please keep the default value.

getExportDataOptions()

Indicating the rule of exporting html file data.The default value is All. The value of the property is HtmlExportDataOptions integer constant.

getExportDocumentProperties()

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.

getExportExtraHeadings()

Indicates whether exporting extra headings when the length of text is longer than max display column. The default value is false. If you want to import the html file to excel, please keep the default value.

getExportFormula()

Indicates whether exporting formula when saving file to html. The default value is true. If you want to import the output html to excel, please keep the default value.

getExportFrameScriptsAndProperties()

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.

getExportGridLines()

Indicating whether exporting the gridlines.The default value is false.

getExportHeadings()

Indicates whether exporting headings when saving file to html.The default value is false. If you want to import the html file to excel, please keep the default value.

getExportHiddenWorksheet()

Indicating if exporting the hidden worksheet content.The default value is true.

getExportImagesAsBase64()

Specifies whether images are saved in Base64 format to HTML, MHTML or EPUB. When this property is set to true image data is exported directly on the img elements and separate files are not created.

getExportObjectListener()

Gets or sets the ExportObjectListener for exporting objects. NOTE: This property is now obsolete. Instead, please use HtmlSaveOptions.IStreamProvider property. This property will be removed 12 months later since August 2015. Aspose apologizes for any inconvenience you may have experienced.

getExportPrintAreaOnly()

Indicates if only exporting the print area to html file. The default value is false.

getExportSimilarBorderStyle()

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.

getExportSingleTab()

Indicates whether exporting the single tab when the file only has one worksheet. The default value is false.

getExportWorkbookProperties()

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.

getExportWorksheetCSSSeparately()

Indicating whether export the worksheet css separately.The default value is false.

getExportWorksheetProperties()

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.

getFilePathProvider()

Gets or sets the IFilePathProvider for exporting Worksheet to html separately.

getHiddenColDisplayType()

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 not been output, if the value is "Hidden", the column would been output,but was hidden,the default value is "Hidden" The value of the property is HtmlHiddenColDisplayType integer constant.

getHiddenRowDisplayType()

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 not been output, if the value is "Hidden", the row would been output,but was hidden,the default value is "Hidden" The value of the property is HtmlHiddenRowDisplayType integer constant.

getHtmlCrossStringType()

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. The value of the property is HtmlCrossType integer constant.

getIgnoreInvisibleShapes()

Indicate whether exporting those not visible shapes The default values is false.

getImageOptions()

Get the ImageOrPrintOptions object before exporting

getImageScalable()

Indicates whether using scalable unit to describe the image width when using scalable unit to describe the column width. The default value is true.

getLinkTargetType()

Indicating the type of target attribute in link,The default value is HtmlLinkTargetType.Parent. The value of the property is HtmlLinkTargetType integer constant.

getMergeAreas()

Indicates whether merge the areas of conditional formatting and validation before saving the file. The default value is false.

getMergeEmptyTdForcely()

Indicates whether merging empty TD element forcely when exporting file to html. The size of html file will be reduced significantly after setting value to true. The default value is false. If you want to import the html file to excel or export perfect grid lines when saving file to html, please keep the default value.

getPageTitle()

The title of the html page. Only for saving to html stream.

getParseHtmlTagInCell()

Parse html tag in cell,like ,as cell value,or as html tag,default is true

getPdfExportImagesFolder()

The physical folder where images will be saved when exporting a workbook to Aspose.Pdf XML format. Default is an empty string.

getPresentationPreference()

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.

getRefreshChartCache()

Indicates whether refreshing chart cache data

getSaveFormat()

Gets the save file format. The value of the property is SaveFormat integer constant.

getSortExternalNames()

Indicates whether sorting external defined names before saving file.

getSortNames()

Indicates whether sorting defined names before saving file.

getTableCssId()

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 "".

getUpdateSmartArt()

Indicates whether updating smart art setting. The default value is false. Only effects after calling Shape.GetResultOfSmartArt() method and the cached shapes exist in the template file.

getValidateMergedAreas()

Indicates whether validate merged cells before saving the file. The default value is false.

getWarningCallback()

Gets or sets warning callback.

getWidthScalable()

Indicates whether using scalable unit to describe the column width when exporting file to html. The default value is false.

getWorksheetScalable()

Indicates if zooming in or out the html via worksheet zoom level when saving file to html, the default value is false.

isExpImageToTempDir()

Indicates whether exporting image files to temp directory. Only for saving to html stream.

isExportComments()

Indicates if exporting comments when saving file to html, the default value is false.

Indicating whether using full path link in sheet00x.htm,filelist.xml and tabstrip.htm. The default value is false.

setAddTooltipText()

Indicates whether adding tooltip text when the data can't be fully displayed. The default value is false.

setAttachedFilesDirectory()

The directory that the attached files will be saved to. Only for saving to html stream.

setAttachedFilesUrlPrefix()

Specify the Url prefix of attached files such as image in the html file. Only for saving to html stream.

setCachedFileFolder()

The cached file folder is used to store some large data.

setCellCssPrefix()

Gets and sets the prefix of the css name,the default value is "".

setClearData()

Make the workbook empty after saving the file.

setCreateDirectory()

If true and the directory does not exist, the directory will be automatically created before saving the file. The default value is false.

setDefaultFontName()

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.

setDisableDownlevelRevealedComments()

Indicates if disable Downlevel-revealed conditional comments when exporting file to html, the default value is false.

setEnableHTTPCompression()

Indicates if http compression is to be used in user's IIS. Please specify this property to true if http compression is used.

setEncoding()

If not set,use Encoding.UTF8 as default enconding type.

setExcludeUnusedStyles()

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.

setExpImageToTempDir()

Indicates whether exporting image files to temp directory. Only for saving to html stream.

setExportActiveWorksheetOnly()

Indicates if exporting the whole workbook to html file.

setExportArea()

Gets or Sets the exporting CellArea of current active Worksheet. If you set this attribute, the print area of current active Worksheet will be omitted. Only the specified area will be exported when saving the file to html.

setExportBogusRowData()

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.

setExportCellCoordinate()

Indicates whether exporting excel coordinate of nonblank cells when saving file to html. The default value is false. If you want to import the output html to excel, please keep the default value.

setExportComments()

Indicates if exporting comments when saving file to html, the default value is false.

setExportDataOptions()

Indicating the rule of exporting html file data.The default value is All. The value of the property is HtmlExportDataOptions integer constant.

setExportDocumentProperties()

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.

setExportExtraHeadings()

Indicates whether exporting extra headings when the length of text is longer than max display column. The default value is false. If you want to import the html file to excel, please keep the default value.

setExportFormula()

Indicates whether exporting formula when saving file to html. The default value is true. If you want to import the output html to excel, please keep the default value.

setExportFrameScriptsAndProperties()

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.

setExportGridLines()

Indicating whether exporting the gridlines.The default value is false.

setExportHeadings()

Indicates whether exporting headings when saving file to html.The default value is false. If you want to import the html file to excel, please keep the default value.

setExportHiddenWorksheet()

Indicating if exporting the hidden worksheet content.The default value is true.

setExportImagesAsBase64()

Specifies whether images are saved in Base64 format to HTML, MHTML or EPUB. When this property is set to true image data is exported directly on the img elements and separate files are not created.

setExportObjectListener()

Gets or sets the ExportObjectListener for exporting objects. NOTE: This property is now obsolete. Instead, please use HtmlSaveOptions.IStreamProvider property. This property will be removed 12 months later since August 2015. Aspose apologizes for any inconvenience you may have experienced.

setExportPrintAreaOnly()

Indicates if only exporting the print area to html file. The default value is false.

setExportSimilarBorderStyle()

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.

setExportSingleTab()

Indicates whether exporting the single tab when the file only has one worksheet. The default value is false.

setExportWorkbookProperties()

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.

setExportWorksheetCSSSeparately()

Indicating whether export the worksheet css separately.The default value is false.

setExportWorksheetProperties()

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.

setFilePathProvider()

Gets or sets the IFilePathProvider for exporting Worksheet to html separately.

Indicating whether using full path link in sheet00x.htm,filelist.xml and tabstrip.htm. The default value is false.

setHiddenColDisplayType()

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 not been output, if the value is "Hidden", the column would been output,but was hidden,the default value is "Hidden" The value of the property is HtmlHiddenColDisplayType integer constant.

setHiddenRowDisplayType()

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 not been output, if the value is "Hidden", the row would been output,but was hidden,the default value is "Hidden" The value of the property is HtmlHiddenRowDisplayType integer constant.

setHtmlCrossStringType()

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. The value of the property is HtmlCrossType integer constant.

setIgnoreInvisibleShapes()

Indicate whether exporting those not visible shapes The default values is false.

setImageScalable()

Indicates whether using scalable unit to describe the image width when using scalable unit to describe the column width. The default value is true.

setLinkTargetType()

Indicating the type of target attribute in link,The default value is HtmlLinkTargetType.Parent. The value of the property is HtmlLinkTargetType integer constant.

setMergeAreas()

Indicates whether merge the areas of conditional formatting and validation before saving the file. The default value is false.

setMergeEmptyTdForcely()

Indicates whether merging empty TD element forcely when exporting file to html. The size of html file will be reduced significantly after setting value to true. The default value is false. If you want to import the html file to excel or export perfect grid lines when saving file to html, please keep the default value.

setPageTitle()

The title of the html page. Only for saving to html stream.

setParseHtmlTagInCell()

Parse html tag in cell,like ,as cell value,or as html tag,default is true

setPdfExportImagesFolder()

The physical folder where images will be saved when exporting a workbook to Aspose.Pdf XML format. Default is an empty string.

setPresentationPreference()

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.

setRefreshChartCache()

Indicates whether refreshing chart cache data

setSortExternalNames()

Indicates whether sorting external defined names before saving file.

setSortNames()

Indicates whether sorting defined names before saving file.

setTableCssId()

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 "".

setUpdateSmartArt()

Indicates whether updating smart art setting. The default value is false. Only effects after calling Shape.GetResultOfSmartArt() method and the cached shapes exist in the template file.

setValidateMergedAreas()

Indicates whether validate merged cells before saving the file. The default value is false.

setWarningCallback()

Gets or sets warning callback.

setWidthScalable()

Indicates whether using scalable unit to describe the column width when exporting file to html. The default value is false.

setWorksheetScalable()

Indicates if zooming in or out the html via worksheet zoom level when saving file to html, the default value is false.