Class HtmlSaveOptions
java.lang.Object
com.grapecity.documents.excel.SaveOptionsBase
com.grapecity.documents.excel.drawing.HtmlSaveOptions
Option class for saving html file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanGets whether adding tooltip text when the data can't be fully displayed.final StringGets the Url prefix of attached files such as image in the html file.final StringGets the prefix of the css name, the default value is null.final CssExportTypeGets the way in which the stylesheet (CSS) is exported.final StringGets encoding.final StringGets which area would be exported to html.final booleanDeprecated.getExportCssSeparately is deprecated.final booleanGets whether exporting document properties.final StringGets the name of the html file.final booleanGets whether exporting the gridlines.final booleanGets whether exporting headings when saving file to html.final booleanGets whether exporting hidden worksheets when saving file to html.final booleanGets whether images are saved in Base64 format to html.final StringGets which worksheet would be exported to html.final booleanGets whether exporting the single tab when the file only has one worksheet or ExportSheetName is set.final booleanGets whether to include the automatically merged cells.final booleanGets if exporting comments when saving file to html.final booleanGets whether using full path link in html.final booleanGets whether using scalable unit to describe the column width when exporting file to html.final HyperLinkTargetTypeGets the type of target attribute in <a> link.The default value is HyperLinkTargetType.Blank.final StringGets the title of the html page.final StringGets the prefix of the type css name such as tr, td and so on, they are contained in the table element which has the specific TableCssId attribute.final voidsetAddTooltipText(boolean value) Sets whether adding tooltip text when the data can't be fully displayed.final voidsetAttachedFilesUrlPrefix(String value) Sets the Url prefix of attached files such as image in the html file.final voidsetCellCssPrefix(String value) Sets the prefix of the css name.final voidsetCssExportType(CssExportType value) Sets the way in which the stylesheet (CSS) is exported.final voidsetEncoding(String value) Sets encoding.final voidsetExportArea(String value) Sets which area would be exported to html.final voidsetExportCssSeparately(boolean value) Deprecated.setExportCssSeparately is deprecated.final voidsetExportDocumentProperties(boolean value) Sets whether exporting document properties.final voidsetExportFileName(String value) Sets the name of the html file.final voidsetExportGridlines(boolean value) Sets whether exporting the gridlines.final voidsetExportHeadings(boolean value) Sets whether exporting headings when saving file to html.final voidsetExportHiddenWorksheet(boolean value) Sets whether exporting hidden worksheets when saving file to html.final voidsetExportImageAsBase64(boolean value) Sets whether images are saved in Base64 format to html.final voidsetExportSheetName(String value) Sets which worksheet would be exported to html.final voidsetExportSingleTab(boolean value) Sets whether exporting the single tab when the file only has one worksheet or ExportSheetName is set.final voidsetIncludeAutoMergedCells(boolean value) Sets whether to include the automatically merged cells.final voidsetIsExportComments(boolean value) Sets if exporting comments when saving file to html.final voidsetIsFullPathLink(boolean value) Sets whether using full path link in html.final voidsetIsWidthScalable(boolean value) Sets whether using scalable unit to describe the column width when exporting file to html.final voidSets the type of target attribute in <a> link.final voidsetPageTitle(String value) Sets the title of the html page.final voidsetTableCssId(String value) Sets the prefix of the type css name such as tr, td and so on, they are contained in the table element which has the specific TableCssId attribute.Methods inherited from class com.grapecity.documents.excel.SaveOptionsBase
getFileFormat, setFileFormat
-
Constructor Details
-
HtmlSaveOptions
public HtmlSaveOptions()Creates options for saving html file.
-
-
Method Details
-
getAddTooltipText
public final boolean getAddTooltipText()Gets whether adding tooltip text when the data can't be fully displayed. The default value is false. -
setAddTooltipText
public final void setAddTooltipText(boolean value) Sets whether adding tooltip text when the data can't be fully displayed. -
getExportFileName
Gets the name of the html file. Only for saving to zip stream, and the default value is "workbook". -
setExportFileName
Sets the name of the html file. Only for saving to zip stream. -
getAttachedFilesUrlPrefix
Gets the Url prefix of attached files such as image in the html file. -
setAttachedFilesUrlPrefix
Sets the Url prefix of attached files such as image in the html file. -
getCellCssPrefix
Gets the prefix of the css name, the default value is null. -
setCellCssPrefix
Sets the prefix of the css name. -
getEncoding
Gets encoding. If not set, use utf-8 as default value. -
setEncoding
Sets encoding. If not set, use utf-8 as default value. -
getExportDocumentProperties
public final boolean getExportDocumentProperties()Gets whether exporting document properties. The default value is true. -
setExportDocumentProperties
public final void setExportDocumentProperties(boolean value) Sets whether exporting document properties. -
getExportGridlines
public final boolean getExportGridlines()Gets whether exporting the gridlines. The default value is false. -
setExportGridlines
public final void setExportGridlines(boolean value) Sets whether exporting the gridlines. -
getExportHeadings
public final boolean getExportHeadings()Gets whether exporting headings when saving file to html. The default value is false. -
setExportHeadings
public final void setExportHeadings(boolean value) Sets whether exporting headings when saving file to html. -
getExportHiddenWorksheet
public final boolean getExportHiddenWorksheet()Gets whether exporting hidden worksheets when saving file to html. The default value is false. -
setExportHiddenWorksheet
public final void setExportHiddenWorksheet(boolean value) Sets whether exporting hidden worksheets when saving file to html. -
getExportImageAsBase64
public final boolean getExportImageAsBase64()Gets whether images are saved in Base64 format to html. The default value is false. -
setExportImageAsBase64
public final void setExportImageAsBase64(boolean value) Sets whether images are saved in Base64 format to html. When this property is set to true image data is exported directly on the img elements and separate files are not created. -
getExportCssSeparately
Deprecated.getExportCssSeparately is deprecated. Use getCssExportType instead.Gets whether export the worksheet style to css separately. The default value is true. -
setExportCssSeparately
Deprecated.setExportCssSeparately is deprecated. Use setCssExportType instead.Sets whether export the worksheet style to css separately. When this property is set to false. Css style data is exported directly to each worksheet and separate stylesheet.css file are not created. -
getExportSingleTab
public final boolean getExportSingleTab()Gets whether exporting the single tab when the file only has one worksheet or ExportSheetName is set. The default value is false. -
setExportSingleTab
public final void setExportSingleTab(boolean value) Sets whether exporting the single tab when the file only has one worksheet or ExportSheetName is set. -
getIsExportComments
public final boolean getIsExportComments()Gets if exporting comments when saving file to html. The default value is false. -
setIsExportComments
public final void setIsExportComments(boolean value) Sets if exporting comments when saving file to html. -
getIsFullPathLink
public final boolean getIsFullPathLink()Gets whether using full path link in html. Only for exporting to html file. The default value is false. -
setIsFullPathLink
public final void setIsFullPathLink(boolean value) Sets whether using full path link in html. Only for exporting to html file. -
getLinkTargetType
Gets the type of target attribute in <a> link.The default value is HyperLinkTargetType.Blank. -
setLinkTargetType
Sets the type of target attribute in <a> link. -
getPageTitle
Gets the title of the html page. -
setPageTitle
Sets the title of the html page. -
getTableCssId
Gets the prefix of the type css name such as tr, td and so on, they are contained in the table element which has the specific TableCssId attribute. The default value is null. -
setTableCssId
Sets the prefix of the type css name such as tr, td and so on, they are contained in the table element which has the specific TableCssId attribute. -
getIsWidthScalable
public final boolean getIsWidthScalable()Gets whether using scalable unit to describe the column width when exporting file to html. The default value is false. -
setIsWidthScalable
public final void setIsWidthScalable(boolean value) Sets whether using scalable unit to describe the column width when exporting file to html. -
getExportSheetName
Gets which worksheet would be exported to html. This is used for exporting specific worksheet of workbook. -
setExportSheetName
Sets which worksheet would be exported to html. This is used for exporting specific worksheet of workbook. -
getExportArea
Gets which area would be exported to html. This is used for exporting specific area of worksheet. Only take effect when HtmlSaveOptions.ExportSheetName is not null. -
setExportArea
Sets which area would be exported to html. This is used for exporting specific area of worksheet. Only take effect when HtmlSaveOptions.ExportSheetName is not null. -
getCssExportType
Gets the way in which the stylesheet (CSS) is exported. -
setCssExportType
Sets the way in which the stylesheet (CSS) is exported. -
getIncludeAutoMergedCells
public final boolean getIncludeAutoMergedCells()Gets whether to include the automatically merged cells. The default value is false. -
setIncludeAutoMergedCells
public final void setIncludeAutoMergedCells(boolean value) Sets whether to include the automatically merged cells. The default value is false.
-