Constructor Summary |
---|
HtmlSaveOptions()
Creates options for saving html file. |
HtmlSaveOptions(saveFormat)
Creates options for saving htm file. |
Property Getters/Setters Summary | ||
---|---|---|
function | getAddGenericFont() | |
function | setAddGenericFont(value) | |
Indicates whether to add a generic font to CSS font-family. The default value is true | ||
function | getAddTooltipText() | |
function | setAddTooltipText(value) | |
Indicates whether adding tooltip text when the data can't be fully displayed. The default value is false. | ||
function | getAttachedFilesDirectory() | |
function | setAttachedFilesDirectory(value) | |
The directory that the attached files will be saved to. Only for saving to html stream. | ||
function | getAttachedFilesUrlPrefix() | |
function | setAttachedFilesUrlPrefix(value) | |
Specify the Url prefix of attached files such as image in the html file. Only for saving to html stream. | ||
function | getCachedFileFolder() | |
function | setCachedFileFolder(value) | |
The cached file folder is used to store some large data. | ||
function | getCalculateFormula() | |
function | setCalculateFormula(value) | |
Indicates whether to calculate formulas before saving html file. | ||
function | getCellCssPrefix() | |
function | setCellCssPrefix(value) | |
Gets and sets the prefix of the css name,the default value is "". | ||
function | getClearData() | |
function | setClearData(value) | |
Make the workbook empty after saving the file. | ||
function | getCreateDirectory() | |
function | setCreateDirectory(value) | |
If true and the directory does not exist, the directory will be automatically created before saving the file. | ||
function | getCssStyles() | |
function | setCssStyles(value) | |
Gets or sets the additional css styles for the formatter.
Only works when Example: CssStyles="body { padding: 5px }"; |
||
function | getDefaultFontName() | |
function | 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. | ||
function | getDisableDownlevelRevealedComments() | |
function | ||
Indicates if disable Downlevel-revealed conditional comments when exporting file to html, the default value is false. | ||
function | getEncoding() | |
function | setEncoding(value) | |
If not set,use Encoding.UTF8 as default enconding type. | ||
function | getExcludeUnusedStyles() | |
function | setExcludeUnusedStyles(value) | |
Indicating whether excludes unused styles. For the generated html files, excluding unused styles can make the file size smaller without affecting the visual effects. So the default value of this property is true. If user needs to keep all styles in the workbook for the generated html(such as the scenario that user needs to restore the workbook from the generated html later), please set this property as false. | ||
function | getExportActiveWorksheetOnly() | |
function | setExportActiveWorksheetOnly(value) | |
Indicates if only exporting the active worksheet to html file. If true then only the active worksheet will be exported to html file; If false then the whole workbook will be exported to html file. The default value is false. | ||
function | getExportArea() | |
function | 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 omitted. Only the specified area will be exported when saving the file to html. | ||
function | getExportBogusRowData() | |
function | 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. | ||
function | getExportCellCoordinate() | |
function | setExportCellCoordinate(value) | |
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. | ||
function | getExportCommentsType() | |
function | setExportCommentsType(value) | |
Represents type of exporting comments to html files. The value of the property is PrintCommentsType integer constant. | ||
function | getExportDataOptions() | |
function | setExportDataOptions(value) | |
Indicating the rule of exporting html file data.The default value is All. The value of the property is HtmlExportDataOptions integer constant. | ||
function | getExportDocumentProperties() | |
function | 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. | ||
function | getExportExtraHeadings() | |
function | setExportExtraHeadings(value) | |
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. | ||
function | getExportFormula() | |
function | setExportFormula(value) | |
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. | ||
function | getExportFrameScriptsAndProperties() | |
function | ||
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. | ||
function | getExportGridLines() | |
function | setExportGridLines(value) | |
Indicating whether exporting the gridlines.The default value is false. | ||
function | getExportHeadings() | |
function | setExportHeadings(value) | |
Indicates whether exports sheet's row and column headings when saving to HTML files. | ||
function | getExportHiddenWorksheet() | |
function | setExportHiddenWorksheet(value) | |
Indicating if exporting the hidden worksheet content.The default value is true. | ||
function | getExportImagesAsBase64() | |
function | setExportImagesAsBase64(value) | |
Specifies whether images are saved in Base64 format to HTML, MHTML or EPUB. | ||
function | getExportObjectListener() | |
function | setExportObjectListener(value) | |
Gets or sets the ExportObjectListener for exporting objects. | ||
function | getExportPageFooters() | |
function | setExportPageFooters(value) | |
Indicates whether exporting page headers. | ||
function | getExportPageHeaders() | |
function | setExportPageHeaders(value) | |
Indicates whether exporting page headers. | ||
function | getExportPrintAreaOnly() | |
function | setExportPrintAreaOnly(value) | |
Indicates if only exporting the print area to html file. The default value is false. | ||
function | getExportRowColumnHeadings() | |
function | setExportRowColumnHeadings(value) | |
Indicates whether exports sheet's row and column headings when saving to HTML files. | ||
function | getExportSimilarBorderStyle() | |
function | 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. | ||
function | getExportSingleTab() | |
function | setExportSingleTab(value) | |
Indicates whether exporting the single tab when the file only has one worksheet. The default value is false. | ||
function | getExportWorkbookProperties() | |
function | 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. | ||
function | getExportWorksheetCSSSeparately() | |
function | ||
Indicating whether export the worksheet css separately.The default value is false. | ||
function | getExportWorksheetProperties() | |
function | 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. | ||
function | getFilePathProvider() | |
function | setFilePathProvider(value) | |
Gets or sets the IFilePathProvider for exporting Worksheet to html separately. | ||
function | getFormatDataIgnoreColumnWidth() | |
function | ||
Indicating whether show the whole formatted data of cell when overflowing the column. If true then ignore the column width and the whole data of cell will be exported. If false then the data will be exported same as Excel. The default value is false. | ||
function | getHiddenColDisplayType() | |
function | 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 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. | ||
function | getHiddenRowDisplayType() | |
function | 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 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. | ||
function | getHideOverflowWrappedText() | |
function | setHideOverflowWrappedText(value) | |
Indicates whether to hide overflow text when the cell format is set to wrap text. The default value is false | ||
function | getHtmlCrossStringType() | |
function | 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. | ||
function | getIgnoreInvisibleShapes() | |
function | setIgnoreInvisibleShapes(value) | |
Indicate whether exporting those not visible shapes | ||
function | getImageOptions() | |
Get the ImageOrPrintOptions object before exporting
|
||
function | getImageScalable() | |
function | setImageScalable(value) | |
Indicates whether using scalable unit to describe the image width when using scalable unit to describe the column width. The default value is true. | ||
function | isBorderCollapsed() | |
function | setBorderCollapsed(value) | |
Indicates whether the table borders are collapsed. The default value is true. | ||
function | isExpImageToTempDir() | |
function | setExpImageToTempDir(value) | |
Indicates whether exporting image files to temp directory. Only for saving to html stream. | ||
function | isExportComments() | |
function | setExportComments(value) | |
Indicates if exporting comments when saving file to html, the default value is false. | ||
function | isFullPathLink() | |
function | setFullPathLink(value) | |
Indicating whether using full path link in sheet00x.htm,filelist.xml and tabstrip.htm. The default value is false. | ||
function | isIECompatible() | |
function | setIECompatible(value) | |
Indicating whether the output HTML is compatible with IE browser. The defalut value is false | ||
function | isJsBrowserCompatible() | |
function | setJsBrowserCompatible(value) | |
Indicates whether JavaScript is compatible with browsers that do not support JavaScript. The default value is true. | ||
function | isMobileCompatible() | |
function | setMobileCompatible(value) | |
Indicates whether the output HTML is compatible with mobile devices. The default value is false. | ||
function | getLinkTargetType() | |
function | 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. |
||
function | getMergeAreas() | |
function | setMergeAreas(value) | |
Indicates whether merge the areas of conditional formatting and validation before saving the file. | ||
function | getMergeEmptyTdForcely() | |
function | setMergeEmptyTdForcely(value) | |
Indicates whether merging empty TD element forcedly 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. | ||
function | getMergeEmptyTdType() | |
function | setMergeEmptyTdType(value) | |
The option to merge contiguous empty cells(empty td elements) The default value is MergeEmptyTdType.Default. The value of the property is MergeEmptyTdType integer constant. | ||
function | getPageTitle() | |
function | setPageTitle(value) | |
The title of the html page. Only for saving to html stream. | ||
function | getParseHtmlTagInCell() | |
function | setParseHtmlTagInCell(value) | |
Indicates whether html tag(such as <div></div> ) in cell should be parsed as cell value or preserved as it is.
The default value is true.
|
||
function | getPresentationPreference() | |
function | 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. | ||
function | getRefreshChartCache() | |
function | setRefreshChartCache(value) | |
Indicates whether refreshing chart cache data | ||
function | getSaveAsSingleFile() | |
function | setSaveAsSingleFile(value) | |
Indicates whether save the html as single file. The default value is false. | ||
function | getSaveFormat() | |
Gets the save file format.
The value of the property is SaveFormat integer constant. |
||
function | getShowAllSheets() | |
function | setShowAllSheets(value) | |
Indicates whether showing all sheets when saving as a single html file. | ||
function | getSortExternalNames() | |
function | setSortExternalNames(value) | |
Indicates whether sorting external defined names before saving file. | ||
function | getSortNames() | |
function | setSortNames(value) | |
Indicates whether sorting defined names before saving file. | ||
function | getTableCssId() | |
function | 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 "". | ||
function | getUpdateSmartArt() | |
function | setUpdateSmartArt(value) | |
Indicates whether updating smart art setting. The default value is false. | ||
function | getValidateMergedAreas() | |
function | setValidateMergedAreas(value) | |
Indicates whether validate merged cells before saving the file. | ||
function | getWarningCallback() | |
function | setWarningCallback(value) | |
Gets or sets warning callback. | ||
function | getWidthScalable() | |
function | setWidthScalable(value) | |
Indicates whether exporting column width in unit of scale to html. The default value is false. | ||
function | getWorksheetScalable() | |
function | setWorksheetScalable(value) | |
Indicates if zooming in or out the html via worksheet zoom level when saving file to html, the default value is false. |
function HtmlSaveOptions()
function HtmlSaveOptions(saveFormat)
saveFormat: Number
- A function getIgnoreInvisibleShapes() / function setIgnoreInvisibleShapes(value)
function getPageTitle() / function setPageTitle(value)
function getAttachedFilesDirectory() / function setAttachedFilesDirectory(value)
function getAttachedFilesUrlPrefix() / function setAttachedFilesUrlPrefix(value)
function getDefaultFontName() / function setDefaultFontName(value)
function getAddGenericFont() / function setAddGenericFont(value)
function getWorksheetScalable() / function setWorksheetScalable(value)
function isExportComments() / function setExportComments(value)
function getExportCommentsType() / function setExportCommentsType(value)
function getDisableDownlevelRevealedComments() / function setDisableDownlevelRevealedComments(value)
function isExpImageToTempDir() / function setExpImageToTempDir(value)
function getImageScalable() / function setImageScalable(value)
function getWidthScalable() / function setWidthScalable(value)
function getExportSingleTab() / function setExportSingleTab(value)
function getExportImagesAsBase64() / function setExportImagesAsBase64(value)
function getExportActiveWorksheetOnly() / function setExportActiveWorksheetOnly(value)
function getExportPrintAreaOnly() / function setExportPrintAreaOnly(value)
function getExportArea() / function setExportArea(value)
function getParseHtmlTagInCell() / function setParseHtmlTagInCell(value)
<div></div>
) in cell should be parsed as cell value or preserved as it is.
The default value is true.
function getHtmlCrossStringType() / function setHtmlCrossStringType(value)
function getHiddenColDisplayType() / function setHiddenColDisplayType(value)
function getHiddenRowDisplayType() / function setHiddenRowDisplayType(value)
function getEncoding() / function setEncoding(value)
function getExportObjectListener() / function setExportObjectListener(value)
function getFilePathProvider() / function setFilePathProvider(value)
function getImageOptions()
function getSaveAsSingleFile() / function setSaveAsSingleFile(value)
function getShowAllSheets() / function setShowAllSheets(value)
function getExportPageHeaders() / function setExportPageHeaders(value)
function getExportPageFooters() / function setExportPageFooters(value)
function getExportHiddenWorksheet() / function setExportHiddenWorksheet(value)
function getPresentationPreference() / function setPresentationPreference(value)
function getCellCssPrefix() / function setCellCssPrefix(value)
function getTableCssId() / function setTableCssId(value)
function isFullPathLink() / function setFullPathLink(value)
function getExportWorksheetCSSSeparately() / function setExportWorksheetCSSSeparately(value)
function getExportSimilarBorderStyle() / function setExportSimilarBorderStyle(value)
function getMergeEmptyTdForcely() / function setMergeEmptyTdForcely(value)
function getMergeEmptyTdType() / function setMergeEmptyTdType(value)
function getExportCellCoordinate() / function setExportCellCoordinate(value)
function getExportExtraHeadings() / function setExportExtraHeadings(value)
function getExportHeadings() / function setExportHeadings(value)
function getExportRowColumnHeadings() / function setExportRowColumnHeadings(value)
function getExportFormula() / function setExportFormula(value)
function getAddTooltipText() / function setAddTooltipText(value)
function getExportGridLines() / function setExportGridLines(value)
function getExportBogusRowData() / function setExportBogusRowData(value)
function getExcludeUnusedStyles() / function setExcludeUnusedStyles(value)
function getExportDocumentProperties() / function setExportDocumentProperties(value)
function getExportWorksheetProperties() / function setExportWorksheetProperties(value)
function getExportWorkbookProperties() / function setExportWorkbookProperties(value)
function getExportFrameScriptsAndProperties() / function setExportFrameScriptsAndProperties(value)
function getExportDataOptions() / function setExportDataOptions(value)
function getLinkTargetType() / function setLinkTargetType(value)
<a>
link. The default value is HtmlLinkTargetType.Parent.
The value of the property is HtmlLinkTargetType integer constant.function isIECompatible() / function setIECompatible(value)
function getFormatDataIgnoreColumnWidth() / function setFormatDataIgnoreColumnWidth(value)
function getCalculateFormula() / function setCalculateFormula(value)
function isJsBrowserCompatible() / function setJsBrowserCompatible(value)
function isMobileCompatible() / function setMobileCompatible(value)
function getCssStyles() / function setCssStyles(value)
Example:
CssStyles="body { padding: 5px }";function getHideOverflowWrappedText() / function setHideOverflowWrappedText(value)
function isBorderCollapsed() / function setBorderCollapsed(value)
function getSaveFormat()
function getClearData() / function setClearData(value)
function getCachedFileFolder() / function setCachedFileFolder(value)
function getValidateMergedAreas() / function setValidateMergedAreas(value)
function getMergeAreas() / function setMergeAreas(value)
function getCreateDirectory() / function setCreateDirectory(value)
function getSortNames() / function setSortNames(value)
function getSortExternalNames() / function setSortExternalNames(value)
function getRefreshChartCache() / function setRefreshChartCache(value)
function getWarningCallback() / function setWarningCallback(value)
function getUpdateSmartArt() / function setUpdateSmartArt(value)