asposecells.api
Class HtmlSaveOptions

Represents the options for saving html file.

Constructor Summary
HtmlSaveOptions()
           Creates options for saving html file.
HtmlSaveOptions(format)
           Creates options for saving htm file.
 
Property Getters/Setters Summary
methodgetAddTooltipText()
methodsetAddTooltipText(value)
           Indicates whether adding tooltip text when the data can't be fully displayed. The default value is false.
methodgetAttachedFilesDirectory()
methodsetAttachedFilesDirectory(value)
           The directory that the attached files will be saved to. Only for saving to html stream.
methodgetAttachedFilesUrlPrefix()
methodsetAttachedFilesUrlPrefix(value)
           Specify the Url prefix of attached files such as image in the html file. Only for saving to html stream.
methodgetCachedFileFolder()
methodsetCachedFileFolder(value)
           The cached file folder is used to store some large data.
methodgetCellCssPrefix()
methodsetCellCssPrefix(value)
           Gets and sets the prefix of the css name,the default value is "".
methodgetClearData()
methodsetClearData(value)
           Make the workbook empty after saving the file.
methodgetCreateDirectory()
methodsetCreateDirectory(value)
           If true and the directory does not exist, the directory will be automatically created before saving the file.
methodgetDefaultFontName()
methodsetDefaultFontName(value)
           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.
methodgetDisableDownlevelRevealedComments()
methodsetDisableDownlevelRevealedComments(value)
           Indicates if disable Downlevel-revealed conditional comments when exporting file to html, the default value is false.
methodgetEnableHTTPCompression()
methodsetEnableHTTPCompression(value)
           Indicates if http compression is to be used in user's IIS.
methodgetEncoding()
methodsetEncoding(value)
           If not set,use Encoding.UTF8 as default enconding type.
methodgetExcludeUnusedStyles()
methodsetExcludeUnusedStyles(value)
           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.
methodgetExportActiveWorksheetOnly()
methodsetExportActiveWorksheetOnly(value)
           Indicates if exporting the whole workbook to html file.
methodgetExportArea()
methodsetExportArea(value)
           Gets or Sets the exporting CellArea of current active Worksheet. If you set this attribute, the print area of current active Worksheet will be omited. Only the specified area will be exported when saving the file to html.
methodgetExportBogusRowData()
methodsetExportBogusRowData(value)
           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.
methodgetExportDataOptions()
methodsetExportDataOptions(value)
           Indicating the rule of exporting html file data.The default value is All. The value of the property is HtmlExportDataOptions integer constant.
methodgetExportDocumentProperties()
methodsetExportDocumentProperties(value)
           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.
methodgetExportFrameScriptsAndProperties()
methodsetExportFrameScriptsAndProperties(value)
           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.
methodgetExportGridLines()
methodsetExportGridLines(value)
           Indicating whether exporting the gridlines.The default value is false.
methodgetExportHeadings()
methodsetExportHeadings(value)
           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.
methodgetExportHiddenWorksheet()
methodsetExportHiddenWorksheet(value)
           Indicating if exporting the hidden worksheet content.The default value is true.
methodgetExportImagesAsBase64()
methodsetExportImagesAsBase64(value)
           Specifies whether images are saved in Base64 format to HTML, MHTML or EPUB.
methodgetExportObjectListener()
methodsetExportObjectListener(value)
           Gets or sets the ExportObjectListener for exporting objects.
methodgetExportPrintAreaOnly()
methodsetExportPrintAreaOnly(value)
           Indicates if only exporting the print area to html file. The default value is false.
methodgetExportSimilarBorderStyle()
methodsetExportSimilarBorderStyle(value)
           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.
methodgetExportSingleTab()
methodsetExportSingleTab(value)
           Indicates whether exporting the single tab when the file only has one worksheet. The default value is false.
methodgetExportWorkbookProperties()
methodsetExportWorkbookProperties(value)
           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.
methodgetExportWorksheetCSSSeparately()
methodsetExportWorksheetCSSSeparately(value)
           Indicating whether export the worksheet css separately.The default value is false.
methodgetExportWorksheetProperties()
methodsetExportWorksheetProperties(value)
           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.
methodgetFilePathProvider()
methodsetFilePathProvider(value)
           Gets or sets the IFilePathProvider for exporting Worksheet to html separately.
methodgetHiddenColDisplayType()
methodsetHiddenColDisplayType(value)
           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" The value of the property is HtmlHiddenColDisplayType integer constant.
methodgetHiddenRowDisplayType()
methodsetHiddenRowDisplayType(value)
           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" The value of the property is HtmlHiddenRowDisplayType integer constant.
methodgetHtmlCrossStringType()
methodsetHtmlCrossStringType(value)
           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.
methodgetImageOptions()
           Get the ImageOrPrintOptions object before exporting
methodisExpImageToTempDir()
methodsetExpImageToTempDir(value)
           Indicates whether exporting image files to temp directory. Only for saving to html stream.
methodisExportComments()
methodsetExportComments(value)
           Indicates if exporting comments when saving file to html, the default value is false.
methodisFullPathLink()
methodsetFullPathLink(value)
           Indicating whether using full path link in sheet00x.htm,filelist.xml and tabstrip.htm. The default value is false.
methodgetLinkTargetType()
methodsetLinkTargetType(value)
           Indicating the type of target attribute in <a> link,The default value is HtmlLinkTargetType.Parent. The value of the property is HtmlLinkTargetType integer constant.
methodgetMergeAreas()
methodsetMergeAreas(value)
           Indicates whether merge the areas of conditional formatting and validation before saving the file.
methodgetPageTitle()
methodsetPageTitle(value)
           The title of the html page. Only for saving to html stream.
methodgetParseHtmlTagInCell()
methodsetParseHtmlTagInCell(value)
           Parse html tag in cell,like
,as cell value,or as html tag,default is true
methodgetPdfExportImagesFolder()
methodsetPdfExportImagesFolder(value)
           The physical folder where images will be saved when exporting a workbook to Aspose.Pdf XML format. Default is an empty string.
methodgetPresentationPreference()
methodsetPresentationPreference(value)
           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.
methodgetRefreshChartCache()
methodsetRefreshChartCache(value)
           Indicates whether refreshing chart cache data
methodgetSaveFormat()
           Gets the save file format. The value of the property is SaveFormat integer constant.
methodgetSortNames()
methodsetSortNames(value)
           Indicates whether sorting defined names before saving file.
methodgetTableCssId()
methodsetTableCssId(value)
           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 "".
methodgetValidateMergedAreas()
methodsetValidateMergedAreas(value)
           Indicates whether validate merged cells before saving the file.
methodgetWarningCallback()
methodsetWarningCallback(value)
           Gets or sets warning callback.
methodgetWidthScalable()
methodsetWidthScalable(value)
           Indicates whether using scalable unit to describe the column width when exporting file to html. The default value is false.
 

Constructor Detail

HtmlSaveOptions

HtmlSaveOptions()
Creates options for saving html file.

HtmlSaveOptions

HtmlSaveOptions(format)
Creates options for saving htm file.
Parameters:
format: int - A SaveFormat value. The saving file format.

Property Getters/Setters Detail

getPageTitle/setPageTitle : String 

String getPageTitle() / setPageTitle(value)
The title of the html page. Only for saving to html stream.

getAttachedFilesDirectory/setAttachedFilesDirectory : String 

String getAttachedFilesDirectory() / setAttachedFilesDirectory(value)
The directory that the attached files will be saved to. Only for saving to html stream.

getAttachedFilesUrlPrefix/setAttachedFilesUrlPrefix : String 

String getAttachedFilesUrlPrefix() / setAttachedFilesUrlPrefix(value)
Specify the Url prefix of attached files such as image in the html file. Only for saving to html stream.

getDefaultFontName/setDefaultFontName : String 

String getDefaultFontName() / setDefaultFontName(value)
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.

isExportComments/setExportComments : boolean 

boolean isExportComments() / setExportComments(value)
Indicates if exporting comments when saving file to html, the default value is false.

getDisableDownlevelRevealedComments/setDisableDownlevelRevealedComments : boolean 

boolean getDisableDownlevelRevealedComments() / setDisableDownlevelRevealedComments(value)
Indicates if disable Downlevel-revealed conditional comments when exporting file to html, the default value is false.

isExpImageToTempDir/setExpImageToTempDir : boolean 

boolean isExpImageToTempDir() / setExpImageToTempDir(value)
Indicates whether exporting image files to temp directory. Only for saving to html stream.

getWidthScalable/setWidthScalable : boolean 

boolean getWidthScalable() / setWidthScalable(value)
Indicates whether using scalable unit to describe the column width when exporting file to html. The default value is false.

getExportSingleTab/setExportSingleTab : boolean 

boolean getExportSingleTab() / setExportSingleTab(value)
Indicates whether exporting the single tab when the file only has one worksheet. The default value is false.

getExportImagesAsBase64/setExportImagesAsBase64 : boolean 

boolean getExportImagesAsBase64() / setExportImagesAsBase64(value)
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.

getExportActiveWorksheetOnly/setExportActiveWorksheetOnly : boolean 

boolean getExportActiveWorksheetOnly() / setExportActiveWorksheetOnly(value)
Indicates if exporting the whole workbook to html file.

getExportPrintAreaOnly/setExportPrintAreaOnly : boolean 

boolean getExportPrintAreaOnly() / setExportPrintAreaOnly(value)
Indicates if only exporting the print area to html file. The default value is false.

getExportArea/setExportArea : CellArea 

CellArea getExportArea() / setExportArea(value)
Gets or Sets the exporting CellArea of current active Worksheet. If you set this attribute, the print area of current active Worksheet will be omited. Only the specified area will be exported when saving the file to html.

getParseHtmlTagInCell/setParseHtmlTagInCell : boolean 

boolean getParseHtmlTagInCell() / setParseHtmlTagInCell(value)
Parse html tag in cell,like
,as cell value,or as html tag,default is true

getHtmlCrossStringType/setHtmlCrossStringType : int 

int getHtmlCrossStringType() / setHtmlCrossStringType(value)
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.

getHiddenColDisplayType/setHiddenColDisplayType : int 

int getHiddenColDisplayType() / setHiddenColDisplayType(value)
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" The value of the property is HtmlHiddenColDisplayType integer constant.

getHiddenRowDisplayType/setHiddenRowDisplayType : int 

int getHiddenRowDisplayType() / setHiddenRowDisplayType(value)
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" The value of the property is HtmlHiddenRowDisplayType integer constant.

getEncoding/setEncoding : Encoding 

Encoding getEncoding() / setEncoding(value)
If not set,use Encoding.UTF8 as default enconding type.

getExportObjectListener/setExportObjectListener : IExportObjectListener 

IExportObjectListener getExportObjectListener() / setExportObjectListener(value)
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.

getFilePathProvider/setFilePathProvider : IFilePathProvider 

IFilePathProvider getFilePathProvider() / setFilePathProvider(value)
Gets or sets the IFilePathProvider for exporting Worksheet to html separately.

getImageOptions : ImageOrPrintOptions 

ImageOrPrintOptions getImageOptions()
Get the ImageOrPrintOptions object before exporting

getExportHiddenWorksheet/setExportHiddenWorksheet : boolean 

boolean getExportHiddenWorksheet() / setExportHiddenWorksheet(value)
Indicating if exporting the hidden worksheet content.The default value is true.

getPresentationPreference/setPresentationPreference : boolean 

boolean getPresentationPreference() / setPresentationPreference(value)
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.

getCellCssPrefix/setCellCssPrefix : String 

String getCellCssPrefix() / setCellCssPrefix(value)
Gets and sets the prefix of the css name,the default value is "".

getTableCssId/setTableCssId : String 

String getTableCssId() / setTableCssId(value)
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 "".

isFullPathLink/setFullPathLink : boolean 

boolean isFullPathLink() / setFullPathLink(value)
Indicating whether using full path link in sheet00x.htm,filelist.xml and tabstrip.htm. The default value is false.

getExportWorksheetCSSSeparately/setExportWorksheetCSSSeparately : boolean 

boolean getExportWorksheetCSSSeparately() / setExportWorksheetCSSSeparately(value)
Indicating whether export the worksheet css separately.The default value is false.

getExportSimilarBorderStyle/setExportSimilarBorderStyle : boolean 

boolean getExportSimilarBorderStyle() / setExportSimilarBorderStyle(value)
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.

getExportHeadings/setExportHeadings : boolean 

boolean getExportHeadings() / setExportHeadings(value)
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.

getAddTooltipText/setAddTooltipText : boolean 

boolean getAddTooltipText() / setAddTooltipText(value)
Indicates whether adding tooltip text when the data can't be fully displayed. The default value is false.

getExportGridLines/setExportGridLines : boolean 

boolean getExportGridLines() / setExportGridLines(value)
Indicating whether exporting the gridlines.The default value is false.

getExportBogusRowData/setExportBogusRowData : boolean 

boolean getExportBogusRowData() / setExportBogusRowData(value)
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.

getExcludeUnusedStyles/setExcludeUnusedStyles : boolean 

boolean getExcludeUnusedStyles() / setExcludeUnusedStyles(value)
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.

getExportDocumentProperties/setExportDocumentProperties : boolean 

boolean getExportDocumentProperties() / setExportDocumentProperties(value)
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.

getExportWorksheetProperties/setExportWorksheetProperties : boolean 

boolean getExportWorksheetProperties() / setExportWorksheetProperties(value)
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.

getExportWorkbookProperties/setExportWorkbookProperties : boolean 

boolean getExportWorkbookProperties() / setExportWorkbookProperties(value)
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.

getExportFrameScriptsAndProperties/setExportFrameScriptsAndProperties : boolean 

boolean getExportFrameScriptsAndProperties() / setExportFrameScriptsAndProperties(value)
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.

getExportDataOptions/setExportDataOptions : int 

int getExportDataOptions() / setExportDataOptions(value)
Indicating the rule of exporting html file data.The default value is All. The value of the property is HtmlExportDataOptions integer constant.

getLinkTargetType/setLinkTargetType : int 

int getLinkTargetType() / setLinkTargetType(value)
Indicating the type of target attribute in <a> link,The default value is HtmlLinkTargetType.Parent. The value of the property is HtmlLinkTargetType integer constant.

getSaveFormat : int 

int getSaveFormat()
Gets the save file format. The value of the property is SaveFormat integer constant.

getClearData/setClearData : boolean 

boolean getClearData() / setClearData(value)
Make the workbook empty after saving the file.

getCachedFileFolder/setCachedFileFolder : String 

String getCachedFileFolder() / setCachedFileFolder(value)
The cached file folder is used to store some large data.

getValidateMergedAreas/setValidateMergedAreas : boolean 

boolean getValidateMergedAreas() / setValidateMergedAreas(value)
Indicates whether validate merged cells before saving the file. The default value is false.

getMergeAreas/setMergeAreas : boolean 

boolean getMergeAreas() / setMergeAreas(value)
Indicates whether merge the areas of conditional formatting and validation before saving the file. The default value is false.

getCreateDirectory/setCreateDirectory : boolean 

boolean getCreateDirectory() / setCreateDirectory(value)
If true and the directory does not exist, the directory will be automatically created before saving the file. The default value is false.

getSortNames/setSortNames : boolean 

boolean getSortNames() / setSortNames(value)
Indicates whether sorting defined names before saving file.

getRefreshChartCache/setRefreshChartCache : boolean 

boolean getRefreshChartCache() / setRefreshChartCache(value)
Indicates whether refreshing chart cache data

getPdfExportImagesFolder/setPdfExportImagesFolder : String 

String getPdfExportImagesFolder() / setPdfExportImagesFolder(value)
The physical folder where images will be saved when exporting a workbook to Aspose.Pdf XML format. Default is an empty string.

getEnableHTTPCompression/setEnableHTTPCompression : boolean 

boolean getEnableHTTPCompression() / setEnableHTTPCompression(value)
Indicates if http compression is to be used in user's IIS. Please specify this property to true if http compression is used.

getWarningCallback/setWarningCallback : IWarningCallback 

IWarningCallback getWarningCallback() / setWarningCallback(value)
Gets or sets warning callback.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.