java.lang.ObjectSaveOptions
com.aspose.cells.HtmlSaveOptions
public class HtmlSaveOptions
| Constructor Summary |
|---|
HtmlSaveOptions()
Creates options for saving html file. |
HtmlSaveOptions(int format)
Creates options for saving htm file. |
| Property Getters/Setters Summary | ||
|---|---|---|
boolean | getAddTooltipText() | |
void | setAddTooltipText(boolean) | |
| Indicates whether adding tooltip text when the data can't be fully displayed. The default value is false. | ||
java.lang.String | getAttachedFilesDirectory() | |
void | setAttachedFilesDirectory(java.lang.String) | |
| The directory that the attached files will be saved to. Only for saving to html stream. | ||
java.lang.String | getAttachedFilesUrlPrefix() | |
void | setAttachedFilesUrlPrefix(java.lang.String) | |
| Specify the Url prefix of attached files such as image in the html file. Only for saving to html stream. | ||
java.lang.String | getCachedFileFolder() | → inherited from SaveOptions
|
void | setCachedFileFolder(java.lang.String) | |
| The cached file folder is used to store some large data. | ||
java.lang.String | getCellCssPrefix() | |
void | setCellCssPrefix(java.lang.String) | |
| Gets and sets the prefix of the css name,the default value is "". | ||
boolean | getClearData() | → inherited from SaveOptions
|
void | setClearData(boolean) | |
| Make the workbook empty after saving the file. | ||
boolean | getCreateDirectory() | → inherited from SaveOptions
|
void | setCreateDirectory(boolean) | |
| If true and the directory does not exist, the directory will be automatically created before saving the file. | ||
java.lang.String | getDefaultFontName() | |
void | setDefaultFontName(java.lang.String) | |
| 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. | ||
boolean | getDisableDownlevelRevealedComments() | |
void | setDisableDownlevelRevealedComments(boolean) | |
| Indicates if disable Downlevel-revealed conditional comments when exporting file to html, the default value is false. | ||
com.aspose.cells.Encoding | getEncoding() | |
void | setEncoding(com.aspose.cells.Encoding) | |
| If not set,use Encoding.UTF8 as default enconding type. | ||
boolean | getExcludeUnusedStyles() | |
void | setExcludeUnusedStyles(boolean) | |
| 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. | ||
boolean | getExportActiveWorksheetOnly() | |
void | setExportActiveWorksheetOnly(boolean) | |
| Indicates if exporting the whole workbook to html file. | ||
CellArea | getExportArea() | |
void | setExportArea(CellArea) | |
| 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. | ||
boolean | getExportBogusRowData() | |
void | setExportBogusRowData(boolean) | |
| 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. | ||
boolean | getExportCellCoordinate() | |
void | setExportCellCoordinate(boolean) | |
| 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. | ||
int | getExportCommentsType() | |
void | setExportCommentsType(int) | |
| Represents type of exporting comments to html files. The value of the property is PrintCommentsType integer constant. | ||
int | getExportDataOptions() | |
void | setExportDataOptions(int) | |
| Indicating the rule of exporting html file data.The default value is All. The value of the property is HtmlExportDataOptions integer constant. | ||
boolean | getExportDocumentProperties() | |
void | setExportDocumentProperties(boolean) | |
| 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. | ||
boolean | getExportExtraHeadings() | |
void | setExportExtraHeadings(boolean) | |
| 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. | ||
boolean | getExportFormula() | |
void | setExportFormula(boolean) | |
| 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. | ||
boolean | getExportFrameScriptsAndProperties() | |
void | setExportFrameScriptsAndProperties(boolean) | |
| 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. | ||
boolean | getExportGridLines() | |
void | setExportGridLines(boolean) | |
| Indicating whether exporting the gridlines.The default value is false. | ||
boolean | getExportHeadings() | |
void | setExportHeadings(boolean) | |
| Indicates whether exports sheet's row and column headings when saving to HTML files. | ||
boolean | getExportHiddenWorksheet() | |
void | setExportHiddenWorksheet(boolean) | |
| Indicating if exporting the hidden worksheet content.The default value is true. | ||
boolean | getExportImagesAsBase64() | |
void | setExportImagesAsBase64(boolean) | |
| Specifies whether images are saved in Base64 format to HTML, MHTML or EPUB. | ||
IExportObjectListener | getExportObjectListener() | |
void | setExportObjectListener(IExportObjectListener) | |
| Gets or sets the ExportObjectListener for exporting objects. | ||
boolean | getExportPageFooters() | |
void | setExportPageFooters(boolean) | |
| Indicates whether exporting page headers. | ||
boolean | getExportPageHeaders() | |
void | setExportPageHeaders(boolean) | |
| Indicates whether exporting page headers. | ||
boolean | getExportPrintAreaOnly() | |
void | setExportPrintAreaOnly(boolean) | |
| Indicates if only exporting the print area to html file. The default value is false. | ||
boolean | getExportRowColumnHeadings() | |
void | setExportRowColumnHeadings(boolean) | |
| Indicates whether exports sheet's row and column headings when saving to HTML files. | ||
boolean | getExportSimilarBorderStyle() | |
void | setExportSimilarBorderStyle(boolean) | |
| 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. | ||
boolean | getExportSingleTab() | |
void | setExportSingleTab(boolean) | |
| Indicates whether exporting the single tab when the file only has one worksheet. The default value is false. | ||
boolean | getExportWorkbookProperties() | |
void | setExportWorkbookProperties(boolean) | |
| 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. | ||
boolean | getExportWorksheetCSSSeparately() | |
void | setExportWorksheetCSSSeparately(boolean) | |
| Indicating whether export the worksheet css separately.The default value is false. | ||
boolean | getExportWorksheetProperties() | |
void | setExportWorksheetProperties(boolean) | |
| 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. | ||
IFilePathProvider | getFilePathProvider() | |
void | setFilePathProvider(IFilePathProvider) | |
| Gets or sets the IFilePathProvider for exporting Worksheet to html separately. | ||
int | getHiddenColDisplayType() | |
void | setHiddenColDisplayType(int) | |
| 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. | ||
int | getHiddenRowDisplayType() | |
void | setHiddenRowDisplayType(int) | |
| 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. | ||
int | getHtmlCrossStringType() | |
void | setHtmlCrossStringType(int) | |
| 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. | ||
boolean | getIgnoreInvisibleShapes() | |
void | setIgnoreInvisibleShapes(boolean) | |
| Indicate whether exporting those not visible shapes | ||
ImageOrPrintOptions | getImageOptions() | |
| Get the ImageOrPrintOptions object before exporting | ||
boolean | getImageScalable() | |
void | setImageScalable(boolean) | |
| Indicates whether using scalable unit to describe the image width when using scalable unit to describe the column width. The default value is true. | ||
boolean | isExpImageToTempDir() | |
void | setExpImageToTempDir(boolean) | |
| Indicates whether exporting image files to temp directory. Only for saving to html stream. | ||
boolean | isExportComments() | |
void | setExportComments(boolean) | |
| Indicates if exporting comments when saving file to html, the default value is false. | ||
boolean | isFullPathLink() | |
void | setFullPathLink(boolean) | |
| Indicating whether using full path link in sheet00x.htm,filelist.xml and tabstrip.htm. The default value is false. | ||
int | getLinkTargetType() | |
void | setLinkTargetType(int) | |
| Indicating the type of target attribute in <a> link,The default value is HtmlLinkTargetType.Parent. The value of the property is HtmlLinkTargetType integer constant. | ||
boolean | getMergeAreas() | → inherited from SaveOptions
|
void | setMergeAreas(boolean) | |
| Indicates whether merge the areas of conditional formatting and validation before saving the file. | ||
boolean | getMergeEmptyTdForcely() | |
void | setMergeEmptyTdForcely(boolean) | |
| 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. | ||
java.lang.String | getPageTitle() | |
void | setPageTitle(java.lang.String) | |
| The title of the html page. Only for saving to html stream. | ||
boolean | getParseHtmlTagInCell() | |
void | setParseHtmlTagInCell(boolean) | |
| Parse html tag in cell,like ,as cell value,or as html tag,default is true | ||
boolean | getPresentationPreference() | |
void | setPresentationPreference(boolean) | |
| 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. | ||
boolean | getRefreshChartCache() | → inherited from SaveOptions
|
void | setRefreshChartCache(boolean) | |
| Indicates whether refreshing chart cache data | ||
boolean | getSaveAsSingleFile() | |
void | setSaveAsSingleFile(boolean) | |
| Indicates whether save the html as single file. The default value is false. | ||
int | getSaveFormat() | → inherited from SaveOptions
|
| Gets the save file format. The value of the property is SaveFormat integer constant. | ||
boolean | getShowAllSheets() | |
void | setShowAllSheets(boolean) | |
| Indicates whether showing all sheets when saving as a single html file. | ||
boolean | getSortExternalNames() | → inherited from SaveOptions
|
void | setSortExternalNames(boolean) | |
| Indicates whether sorting external defined names before saving file. | ||
boolean | getSortNames() | → inherited from SaveOptions
|
void | setSortNames(boolean) | |
| Indicates whether sorting defined names before saving file. | ||
IStreamProvider | getStreamProvider() | |
void | setStreamProvider(IStreamProvider) | |
| Gets or sets the IStreamProvider for exporting objects. | ||
java.lang.String | getTableCssId() | |
void | setTableCssId(java.lang.String) | |
| 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 "". | ||
boolean | getUpdateSmartArt() | → inherited from SaveOptions
|
void | setUpdateSmartArt(boolean) | |
| Indicates whether updating smart art setting. The default value is false. | ||
boolean | getValidateMergedAreas() | → inherited from SaveOptions
|
void | setValidateMergedAreas(boolean) | |
| Indicates whether validate merged cells before saving the file. | ||
IWarningCallback | getWarningCallback() | → inherited from SaveOptions
|
void | setWarningCallback(IWarningCallback) | |
| Gets or sets warning callback. | ||
boolean | getWidthScalable() | |
void | setWidthScalable(boolean) | |
| Indicates whether using scalable unit to describe the column width when exporting file to html. The default value is false. | ||
boolean | getWorksheetScalable() | |
void | setWorksheetScalable(boolean) | |
| Indicates if zooming in or out the html via worksheet zoom level when saving file to html, the default value is false. | ||
| Constructor Detail |
|---|
public HtmlSaveOptions()
public HtmlSaveOptions(int format)
format - A | Property Getters/Setters Detail |
|---|
getIgnoreInvisibleShapes/setIgnoreInvisibleShapes | |
public boolean getIgnoreInvisibleShapes() / public void setIgnoreInvisibleShapes(boolean value) | |
getPageTitle/setPageTitle | |
public java.lang.String getPageTitle() / public void setPageTitle(java.lang.String value) | |
getAttachedFilesDirectory/setAttachedFilesDirectory | |
public java.lang.String getAttachedFilesDirectory() / public void setAttachedFilesDirectory(java.lang.String value) | |
getAttachedFilesUrlPrefix/setAttachedFilesUrlPrefix | |
public java.lang.String getAttachedFilesUrlPrefix() / public void setAttachedFilesUrlPrefix(java.lang.String value) | |
getDefaultFontName/setDefaultFontName | |
public java.lang.String getDefaultFontName() / public void setDefaultFontName(java.lang.String value) | |
getWorksheetScalable/setWorksheetScalable | |
public boolean getWorksheetScalable() / public void setWorksheetScalable(boolean value) | |
isExportComments/setExportComments | |
public boolean isExportComments() / public void setExportComments(boolean value) | |
getExportCommentsType/setExportCommentsType | |
public int getExportCommentsType() / public void setExportCommentsType(int value) | |
getDisableDownlevelRevealedComments/setDisableDownlevelRevealedComments | |
public boolean getDisableDownlevelRevealedComments() / public void setDisableDownlevelRevealedComments(boolean value) | |
isExpImageToTempDir/setExpImageToTempDir | |
public boolean isExpImageToTempDir() / public void setExpImageToTempDir(boolean value) | |
getImageScalable/setImageScalable | |
public boolean getImageScalable() / public void setImageScalable(boolean value) | |
getWidthScalable/setWidthScalable | |
public boolean getWidthScalable() / public void setWidthScalable(boolean value) | |
getExportSingleTab/setExportSingleTab | |
public boolean getExportSingleTab() / public void setExportSingleTab(boolean value) | |
getExportImagesAsBase64/setExportImagesAsBase64 | |
public boolean getExportImagesAsBase64() / public void setExportImagesAsBase64(boolean value) | |
getExportActiveWorksheetOnly/setExportActiveWorksheetOnly | |
public boolean getExportActiveWorksheetOnly() / public void setExportActiveWorksheetOnly(boolean value) | |
getExportPrintAreaOnly/setExportPrintAreaOnly | |
public boolean getExportPrintAreaOnly() / public void setExportPrintAreaOnly(boolean value) | |
getExportArea/setExportArea | |
public CellArea getExportArea() / public void setExportArea(CellArea value) | |
getParseHtmlTagInCell/setParseHtmlTagInCell | |
public boolean getParseHtmlTagInCell() / public void setParseHtmlTagInCell(boolean value) | |
getHtmlCrossStringType/setHtmlCrossStringType | |
public int getHtmlCrossStringType() / public void setHtmlCrossStringType(int value) | |
getHiddenColDisplayType/setHiddenColDisplayType | |
public int getHiddenColDisplayType() / public void setHiddenColDisplayType(int value) | |
getHiddenRowDisplayType/setHiddenRowDisplayType | |
public int getHiddenRowDisplayType() / public void setHiddenRowDisplayType(int value) | |
getEncoding/setEncoding | |
public com.aspose.cells.Encoding getEncoding() / public void setEncoding(com.aspose.cells.Encoding value) | |
getExportObjectListener/setExportObjectListener | |
public IExportObjectListener getExportObjectListener() / public void setExportObjectListener(IExportObjectListener value) | |
getFilePathProvider/setFilePathProvider | |
public IFilePathProvider getFilePathProvider() / public void setFilePathProvider(IFilePathProvider value) | |
getStreamProvider/setStreamProvider | |
public IStreamProvider getStreamProvider() / public void setStreamProvider(IStreamProvider value) | |
getImageOptions | |
public ImageOrPrintOptions getImageOptions() | |
getSaveAsSingleFile/setSaveAsSingleFile | |
public boolean getSaveAsSingleFile() / public void setSaveAsSingleFile(boolean value) | |
getShowAllSheets/setShowAllSheets | |
public boolean getShowAllSheets() / public void setShowAllSheets(boolean value) | |
getExportPageHeaders/setExportPageHeaders | |
public boolean getExportPageHeaders() / public void setExportPageHeaders(boolean value) | |
getExportPageFooters/setExportPageFooters | |
public boolean getExportPageFooters() / public void setExportPageFooters(boolean value) | |
getExportHiddenWorksheet/setExportHiddenWorksheet | |
public boolean getExportHiddenWorksheet() / public void setExportHiddenWorksheet(boolean value) | |
getPresentationPreference/setPresentationPreference | |
public boolean getPresentationPreference() / public void setPresentationPreference(boolean value) | |
getCellCssPrefix/setCellCssPrefix | |
public java.lang.String getCellCssPrefix() / public void setCellCssPrefix(java.lang.String value) | |
getTableCssId/setTableCssId | |
public java.lang.String getTableCssId() / public void setTableCssId(java.lang.String value) | |
isFullPathLink/setFullPathLink | |
public boolean isFullPathLink() / public void setFullPathLink(boolean value) | |
getExportWorksheetCSSSeparately/setExportWorksheetCSSSeparately | |
public boolean getExportWorksheetCSSSeparately() / public void setExportWorksheetCSSSeparately(boolean value) | |
getExportSimilarBorderStyle/setExportSimilarBorderStyle | |
public boolean getExportSimilarBorderStyle() / public void setExportSimilarBorderStyle(boolean value) | |
getMergeEmptyTdForcely/setMergeEmptyTdForcely | |
public boolean getMergeEmptyTdForcely() / public void setMergeEmptyTdForcely(boolean value) | |
getExportCellCoordinate/setExportCellCoordinate | |
public boolean getExportCellCoordinate() / public void setExportCellCoordinate(boolean value) | |
getExportExtraHeadings/setExportExtraHeadings | |
public boolean getExportExtraHeadings() / public void setExportExtraHeadings(boolean value) | |
getExportHeadings/setExportHeadings | |
public boolean getExportHeadings() / public void setExportHeadings(boolean value) | |
getExportRowColumnHeadings/setExportRowColumnHeadings | |
public boolean getExportRowColumnHeadings() / public void setExportRowColumnHeadings(boolean value) | |
getExportFormula/setExportFormula | |
public boolean getExportFormula() / public void setExportFormula(boolean value) | |
getAddTooltipText/setAddTooltipText | |
public boolean getAddTooltipText() / public void setAddTooltipText(boolean value) | |
getExportGridLines/setExportGridLines | |
public boolean getExportGridLines() / public void setExportGridLines(boolean value) | |
getExportBogusRowData/setExportBogusRowData | |
public boolean getExportBogusRowData() / public void setExportBogusRowData(boolean value) | |
getExcludeUnusedStyles/setExcludeUnusedStyles | |
public boolean getExcludeUnusedStyles() / public void setExcludeUnusedStyles(boolean value) | |
getExportDocumentProperties/setExportDocumentProperties | |
public boolean getExportDocumentProperties() / public void setExportDocumentProperties(boolean value) | |
getExportWorksheetProperties/setExportWorksheetProperties | |
public boolean getExportWorksheetProperties() / public void setExportWorksheetProperties(boolean value) | |
getExportWorkbookProperties/setExportWorkbookProperties | |
public boolean getExportWorkbookProperties() / public void setExportWorkbookProperties(boolean value) | |
getExportFrameScriptsAndProperties/setExportFrameScriptsAndProperties | |
public boolean getExportFrameScriptsAndProperties() / public void setExportFrameScriptsAndProperties(boolean value) | |
getExportDataOptions/setExportDataOptions | |
public int getExportDataOptions() / public void setExportDataOptions(int value) | |
getLinkTargetType/setLinkTargetType | |
public int getLinkTargetType() / public void setLinkTargetType(int value) | |
getSaveFormat | → inherited from SaveOptions
|
public int getSaveFormat() | |
getClearData/setClearData | → inherited from SaveOptions
|
public boolean getClearData() / public void setClearData(boolean value) | |
getCachedFileFolder/setCachedFileFolder | → inherited from SaveOptions
|
public java.lang.String getCachedFileFolder() / public void setCachedFileFolder(java.lang.String value) | |
getValidateMergedAreas/setValidateMergedAreas | → inherited from SaveOptions
|
public boolean getValidateMergedAreas() / public void setValidateMergedAreas(boolean value) | |
getMergeAreas/setMergeAreas | → inherited from SaveOptions
|
public boolean getMergeAreas() / public void setMergeAreas(boolean value) | |
getCreateDirectory/setCreateDirectory | → inherited from SaveOptions
|
public boolean getCreateDirectory() / public void setCreateDirectory(boolean value) | |
getSortNames/setSortNames | → inherited from SaveOptions
|
public boolean getSortNames() / public void setSortNames(boolean value) | |
getSortExternalNames/setSortExternalNames | → inherited from SaveOptions
|
public boolean getSortExternalNames() / public void setSortExternalNames(boolean value) | |
getRefreshChartCache/setRefreshChartCache | → inherited from SaveOptions
|
public boolean getRefreshChartCache() / public void setRefreshChartCache(boolean value) | |
getWarningCallback/setWarningCallback | → inherited from SaveOptions
|
public IWarningCallback getWarningCallback() / public void setWarningCallback(IWarningCallback value) | |
getUpdateSmartArt/setUpdateSmartArt | → inherited from SaveOptions
|
public boolean getUpdateSmartArt() / public void setUpdateSmartArt(boolean value) | |