Constructor Summary |
---|
HtmlLoadOptions()
Creates an options of loading the file. |
HtmlLoadOptions(loadFormat)
Creates an options of loading the file. |
Property Getters/Setters Summary | ||
---|---|---|
function | getAttachedFilesDirectory() | |
function | setAttachedFilesDirectory(value) | |
The directory that the attached files will be saved to. | ||
function | getAutoFilter() | |
function | setAutoFilter(value) | |
Indicates whether auto filtering the data when loading the files. | ||
function | getAutoFitColsAndRows() | |
function | setAutoFitColsAndRows(value) | |
Indicates whether auto-fit columns and rows. The default value is false. | ||
function | getAutoFitterOptions() | |
function | setAutoFitterOptions(value) | |
Gets and sets the auto fitter options | ||
function | getCheckDataValid() | |
function | setCheckDataValid(value) | |
Check whether data is valid in the template file. | ||
function | getCheckExcelRestriction() | |
function | setCheckExcelRestriction(value) | |
Whether check restriction of excel file when user modify cells related objects. For example, excel does not allow inputting string value longer than 32K. When you input a value longer than 32K such as by Cell.PutValue(string), if this property is true, you will get an Exception. If this property is false, we will accept your input string value as the cell's value so that later you can output the complete string value for other file formats such as CSV. However, if you have set such kind of value that is invalid for excel file format, you should not save the workbook as excel file format later. Otherwise there may be unexpected error for the generated excel file. | ||
function | getConvertDateTimeData() | |
function | setConvertDateTimeData(value) | |
Gets or sets a value that indicates whether the string in text file is converted to date data. | ||
function | getConvertFormulasData() | |
function | setConvertFormulasData(value) | |
if true, convert string to formula when string value starts with character '=',the default value is false. | ||
function | getConvertNumericData() | |
function | setConvertNumericData(value) | |
Gets or sets a value that indicates whether the string in text file is converted to numeric data. | ||
function | getDefaultStyleSettings() | |
Gets the default style settings for initializing styles of the workbook
|
||
function | getDeleteRedundantSpaces() | |
function | setDeleteRedundantSpaces(value) | |
Indicates whether delete redundant spaces when the text wraps lines using <br> tag.
The default value is false.
|
||
function | getEncoding() | |
function | setEncoding(value) | |
Gets and sets the default encoding. Only applies for csv file. | ||
function | getFontConfigs() | |
function | setFontConfigs(value) | |
Gets and sets individual font configs.
Only works for the |
||
function | hasFormula() | |
function | setHasFormula(value) | |
Indicates whether the text is formula if it starts with "=". | ||
function | getIgnoreNotPrinted() | |
function | setIgnoreNotPrinted(value) | |
Ignore the data which are not printed if directly printing the file | ||
function | getIgnoreUselessShapes() | |
function | setIgnoreUselessShapes(value) | |
Indicates whether ignoring useless shapes. | ||
function | getInterruptMonitor() | |
function | setInterruptMonitor(value) | |
Gets and sets the interrupt monitor. | ||
function | getKeepPrecision() | |
function | setKeepPrecision(value) | |
Indicates whether not parsing a string value if the length is 15. | ||
function | getKeepUnparsedData() | |
function | setKeepUnparsedData(value) | |
Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true. | ||
function | getLanguageCode() | |
function | setLanguageCode(value) | |
Gets or sets the user interface language of the Workbook version based on CountryCode that has saved the file. The value of the property is CountryCode integer constant. | ||
function | getLightCellsDataHandler() | |
function | setLightCellsDataHandler(value) | |
The data handler for processing cells data when reading template file. | ||
function | getLoadFilter() | |
function | setLoadFilter(value) | |
The filter to denote how to load data. | ||
function | getLoadFormat() | |
Gets the load format.
The value of the property is LoadFormat integer constant. |
||
function | getLoadFormulas() | |
function | setLoadFormulas(value) | |
Indicates whether importing formulas if the original html file contains formulas | ||
function | getLoadStyleStrategy() | |
function | setLoadStyleStrategy(value) | |
Indicates the strategy to apply style for parsed values when converting string value to number or datetime. The value of the property is TxtLoadStyleStrategy integer constant. | ||
function | getLocale() | |
function | setLocale(value) | |
Gets and sets the Locale used for workbook at the time the file was loaded. | ||
function | getMemorySetting() | |
function | setMemorySetting(value) | |
Gets or sets the memory usage options. The value of the property is MemorySetting integer constant. | ||
function | getParsingFormulaOnOpen() | |
function | setParsingFormulaOnOpen(value) | |
Indicates whether parsing the formula when reading the file. | ||
function | getParsingPivotCachedRecords() | |
function | setParsingPivotCachedRecords(value) | |
Indicates whether parsing pivot cached records when loading the file. The default value is false. | ||
function | getPassword() | |
function | setPassword(value) | |
Gets and set the password of the workbook. | ||
function | getPreservePaddingSpacesInFormula() | |
function | ||
Indicates whether preserve those spaces and line breaks that are padded between formula tokens while getting and setting formulas. Default value is false. | ||
function | getProgId() | |
Gets the program id of creating the file.
Only for MHT files.
|
||
function | getRegion() | |
function | setRegion(value) | |
Gets or sets the system regional settings based on CountryCode at the time the file was loaded. The value of the property is CountryCode integer constant. | ||
function | getStandardFont() | |
function | setStandardFont(value) | |
Sets the default standard font name | ||
function | getStandardFontSize() | |
function | setStandardFontSize(value) | |
Sets the default standard font size. | ||
function | getSupportDivTag() | |
function | setSupportDivTag(value) | |
Indicates whether support the layout of <div> tag when the html file contains it.
The default value is false.
|
||
function | getTableLoadOptions() | |
Get the HtmlTableLoadOptionCollection instance
|
||
function | getWarningCallback() | |
function | setWarningCallback(value) | |
Gets or sets warning callback. |
Method Summary | ||
---|---|---|
function | setPaperSize(type) | |
Sets the default print paper size from default printer's setting.
|
function HtmlLoadOptions()
function HtmlLoadOptions(loadFormat)
loadFormat: Number
- A function getAttachedFilesDirectory() / function setAttachedFilesDirectory(value)
function getLoadFormulas() / function setLoadFormulas(value)
function getSupportDivTag() / function setSupportDivTag(value)
<div>
tag when the html file contains it.
The default value is false.
function getDeleteRedundantSpaces() / function setDeleteRedundantSpaces(value)
<br>
tag.
The default value is false.
function getAutoFitColsAndRows() / function setAutoFitColsAndRows(value)
function getConvertFormulasData() / function setConvertFormulasData(value)
function hasFormula() / function setHasFormula(value)
function getProgId()
function getTableLoadOptions()
function getEncoding() / function setEncoding(value)
function getLoadStyleStrategy() / function setLoadStyleStrategy(value)
function getConvertNumericData() / function setConvertNumericData(value)
function getConvertDateTimeData() / function setConvertDateTimeData(value)
function getKeepPrecision() / function setKeepPrecision(value)
function getLoadFormat()
function getPassword() / function setPassword(value)
function getParsingFormulaOnOpen() / function setParsingFormulaOnOpen(value)
function getParsingPivotCachedRecords() / function setParsingPivotCachedRecords(value)
function getLanguageCode() / function setLanguageCode(value)
function getRegion() / function setRegion(value)
function getLocale() / function setLocale(value)
function getDefaultStyleSettings()
function getStandardFont() / function setStandardFont(value)
function getStandardFontSize() / function setStandardFontSize(value)
function getInterruptMonitor() / function setInterruptMonitor(value)
function getIgnoreNotPrinted() / function setIgnoreNotPrinted(value)
function getCheckDataValid() / function setCheckDataValid(value)
function getCheckExcelRestriction() / function setCheckExcelRestriction(value)
function getKeepUnparsedData() / function setKeepUnparsedData(value)
function getLoadFilter() / function setLoadFilter(value)
function getLightCellsDataHandler() / function setLightCellsDataHandler(value)
function getMemorySetting() / function setMemorySetting(value)
function getWarningCallback() / function setWarningCallback(value)
function getAutoFitterOptions() / function setAutoFitterOptions(value)
function getAutoFilter() / function setAutoFilter(value)
function getFontConfigs() / function setFontConfigs(value)
function getIgnoreUselessShapes() / function setIgnoreUselessShapes(value)
function getPreservePaddingSpacesInFormula() / function setPreservePaddingSpacesInFormula(value)
function setPaperSize(type)
type: Number
- A