类 HtmlSaveOptions
java.lang.Object
com.grapecity.documents.excel.SaveOptionsBase
com.grapecity.documents.excel.drawing.HtmlSaveOptions
Option class for saving html file.
-
构造器概要
-
方法概要
修饰符和类型方法说明final boolean
Gets whether adding tooltip text when the data can't be fully displayed.final String
Gets the Url prefix of attached files such as image in the html file.final String
Gets the prefix of the css name, the default value is null.final String
Gets encoding.final String
Gets which area would be exported to html.final boolean
Gets whether export the worksheet style to css separately.final boolean
Gets whether exporting document properties.final String
Gets the name of the html file.final boolean
Gets whether exporting the gridlines.final boolean
Gets whether exporting headings when saving file to html.final boolean
Gets whether exporting headings when saving file to html.final boolean
Gets whether images are saved in Base64 format to html.final String
Gets which worksheet would be exported to html.final boolean
Gets whether exporting the single tab when the file only has one worksheet or ExportSheetName is set.final boolean
Gets if exporting comments when saving file to html.final boolean
Gets whether using full path link in html.final boolean
Gets whether using scalable unit to describe the column width when exporting file to html.final HyperLinkTargetType
Gets the type of target attribute in <a> link.The default value is HyperLinkTargetType.Blank.final String
Gets the title of the html page.final String
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.final void
setAddTooltipText
(boolean value) Sets whether adding tooltip text when the data can't be fully displayed.final void
setAttachedFilesUrlPrefix
(String value) Sets the Url prefix of attached files such as image in the html file.final void
setCellCssPrefix
(String value) Sets the prefix of the css name.final void
setEncoding
(String value) Sets encoding.final void
setExportArea
(String value) Sets which area would be exported to html.final void
setExportCssSeparately
(boolean value) Sets whether export the worksheet style to css separately.final void
setExportDocumentProperties
(boolean value) Sets whether exporting document properties.final void
setExportFileName
(String value) Sets the name of the html file.final void
setExportGridlines
(boolean value) Sets whether exporting the gridlines.final void
setExportHeadings
(boolean value) Sets whether exporting headings when saving file to html.final void
setExportHiddenWorksheet
(boolean value) Sets whether exporting headings when saving file to html.final void
setExportImageAsBase64
(boolean value) Sets whether images are saved in Base64 format to html.final void
setExportSheetName
(String value) Sets which worksheet would be exported to html.final void
setExportSingleTab
(boolean value) Sets whether exporting the single tab when the file only has one worksheet or ExportSheetName is set.final void
setIsExportComments
(boolean value) Sets if exporting comments when saving file to html.final void
setIsFullPathLink
(boolean value) Sets whether using full path link in html.final void
setIsWidthScalable
(boolean value) Sets whether using scalable unit to describe the column width when exporting file to html.final void
Sets the type of target attribute in <a> link.final void
setPageTitle
(String value) Sets the title of the html page.final void
setTableCssId
(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.从类继承的方法 com.grapecity.documents.excel.SaveOptionsBase
getFileFormat, setFileFormat
-
构造器详细资料
-
HtmlSaveOptions
public HtmlSaveOptions()Creates options for saving html file.
-
-
方法详细资料
-
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 headings when saving file to html. The default value is false. -
setExportHiddenWorksheet
public final void setExportHiddenWorksheet(boolean value) Sets whether exporting headings 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
public final boolean getExportCssSeparately()Gets whether export the worksheet style to css separately. The default value is true. -
setExportCssSeparately
public final void setExportCssSeparately(boolean value) 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.
-