Constructor Summary |
---|
HtmlLoadOptions()
Creates an options of loading the file. |
HtmlLoadOptions(loadFormat)
Creates an options of loading the file. |
Property Getters/Setters Summary | ||
---|---|---|
method | getAttachedFilesDirectory() | |
method | setAttachedFilesDirectory(value) | |
The directory that the attached files will be saved to. | ||
method | getAutoFilter() | |
method | setAutoFilter(value) | |
Indicates whether auto filtering the data when loading the files. | ||
method | getAutoFitColsAndRows() | |
method | setAutoFitColsAndRows(value) | |
Indicates whether auto-fit columns and rows. The default value is false. | ||
method | getAutoFitterOptions() | |
method | setAutoFitterOptions(value) | |
Gets and sets the auto fitter options | ||
method | getCheckDataValid() | |
method | setCheckDataValid(value) | |
Check whether data is valid in the template file. | ||
method | getCheckExcelRestriction() | |
method | 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. | ||
method | getConvertDateTimeData() | |
method | setConvertDateTimeData(value) | |
Gets or sets a value that indicates whether the string in text file is converted to date data. | ||
method | getConvertFormulasData() | |
method | setConvertFormulasData(value) | |
if true, convert string to formula when string value starts with character '=',the default value is false. | ||
method | getConvertNumericData() | |
method | setConvertNumericData(value) | |
Gets or sets a value that indicates whether the string in text file is converted to numeric data. | ||
method | getDefaultStyleSettings() | |
Gets the default style settings for initializing styles of the workbook
|
||
method | getDeleteRedundantSpaces() | |
method | setDeleteRedundantSpaces(value) | |
Indicates whether delete redundant spaces when the text wraps lines using <br> tag.
The default value is false.
|
||
method | getEncoding() | |
method | setEncoding(value) | |
Gets and sets the default encoding. Only applies for csv file. | ||
method | getFontConfigs() | |
method | setFontConfigs(value) | |
Gets and sets individual font configs.
Only works for the |
||
method | hasFormula() | |
method | setHasFormula(value) | |
Indicates whether the text is formula if it starts with "=". | ||
method | getIgnoreNotPrinted() | |
method | setIgnoreNotPrinted(value) | |
Ignore the data which are not printed if directly printing the file | ||
method | getIgnoreUselessShapes() | |
method | setIgnoreUselessShapes(value) | |
Indicates whether ignoring useless shapes. | ||
method | getInterruptMonitor() | |
method | setInterruptMonitor(value) | |
Gets and sets the interrupt monitor. | ||
method | getKeepPrecision() | |
method | setKeepPrecision(value) | |
Indicates whether not parsing a string value if the length is 15. | ||
method | getKeepUnparsedData() | |
method | setKeepUnparsedData(value) | |
Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true. | ||
method | getLanguageCode() | |
method | 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. | ||
method | getLightCellsDataHandler() | |
method | setLightCellsDataHandler(value) | |
The data handler for processing cells data when reading template file. | ||
method | getLoadFilter() | |
method | setLoadFilter(value) | |
The filter to denote how to load data. | ||
method | getLoadFormat() | |
Gets the load format.
The value of the property is LoadFormat integer constant. |
||
method | getLoadFormulas() | |
method | setLoadFormulas(value) | |
Indicates whether importing formulas if the original html file contains formulas | ||
method | getLoadStyleStrategy() | |
method | 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. | ||
method | getLocale() | |
method | setLocale(value) | |
Gets and sets the Locale used for workbook at the time the file was loaded. | ||
method | getMemorySetting() | |
method | setMemorySetting(value) | |
Gets or sets the memory usage options. The value of the property is MemorySetting integer constant. | ||
method | getParsingFormulaOnOpen() | |
method | setParsingFormulaOnOpen(value) | |
Indicates whether parsing the formula when reading the file. | ||
method | getParsingPivotCachedRecords() | |
method | setParsingPivotCachedRecords(value) | |
Indicates whether parsing pivot cached records when loading the file. The default value is false. | ||
method | getPassword() | |
method | setPassword(value) | |
Gets and set the password of the workbook. | ||
method | getPreservePaddingSpacesInFormula() | |
method | ||
Indicates whether preserve those spaces and line breaks that are padded between formula tokens while getting and setting formulas. Default value is false. | ||
method | getProgId() | |
Gets the program id of creating the file.
Only for MHT files.
|
||
method | getRegion() | |
method | 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. | ||
method | getStandardFont() | |
method | setStandardFont(value) | |
Sets the default standard font name | ||
method | getStandardFontSize() | |
method | setStandardFontSize(value) | |
Sets the default standard font size. | ||
method | getSupportDivTag() | |
method | setSupportDivTag(value) | |
Indicates whether support the layout of <div> tag when the html file contains it.
The default value is false.
|
||
method | getTableLoadOptions() | |
Get the HtmlTableLoadOptionCollection instance
|
||
method | getWarningCallback() | |
method | setWarningCallback(value) | |
Gets or sets warning callback. |
Method Summary | ||
---|---|---|
method | setPaperSize(type) | |
Sets the default print paper size from default printer's setting.
|
HtmlLoadOptions()
HtmlLoadOptions(loadFormat)
loadFormat: int
- A String getAttachedFilesDirectory() / setAttachedFilesDirectory(value)
boolean getLoadFormulas() / setLoadFormulas(value)
boolean getSupportDivTag() / setSupportDivTag(value)
<div>
tag when the html file contains it.
The default value is false.
boolean getDeleteRedundantSpaces() / setDeleteRedundantSpaces(value)
<br>
tag.
The default value is false.
boolean getAutoFitColsAndRows() / setAutoFitColsAndRows(value)
boolean getConvertFormulasData() / setConvertFormulasData(value)
boolean hasFormula() / setHasFormula(value)
String getProgId()
HtmlTableLoadOptionCollection getTableLoadOptions()
Encoding getEncoding() / setEncoding(value)
int getLoadStyleStrategy() / setLoadStyleStrategy(value)
boolean getConvertNumericData() / setConvertNumericData(value)
boolean getConvertDateTimeData() / setConvertDateTimeData(value)
boolean getKeepPrecision() / setKeepPrecision(value)
int getLoadFormat()
String getPassword() / setPassword(value)
boolean getParsingFormulaOnOpen() / setParsingFormulaOnOpen(value)
boolean getParsingPivotCachedRecords() / setParsingPivotCachedRecords(value)
int getLanguageCode() / setLanguageCode(value)
int getRegion() / setRegion(value)
Locale getLocale() / setLocale(value)
DefaultStyleSettings getDefaultStyleSettings()
String getStandardFont() / setStandardFont(value)
float getStandardFontSize() / setStandardFontSize(value)
AbstractInterruptMonitor getInterruptMonitor() / setInterruptMonitor(value)
boolean getIgnoreNotPrinted() / setIgnoreNotPrinted(value)
boolean getCheckDataValid() / setCheckDataValid(value)
boolean getCheckExcelRestriction() / setCheckExcelRestriction(value)
boolean getKeepUnparsedData() / setKeepUnparsedData(value)
LoadFilter getLoadFilter() / setLoadFilter(value)
LightCellsDataHandler getLightCellsDataHandler() / setLightCellsDataHandler(value)
int getMemorySetting() / setMemorySetting(value)
IWarningCallback getWarningCallback() / setWarningCallback(value)
AutoFitterOptions getAutoFitterOptions() / setAutoFitterOptions(value)
boolean getAutoFilter() / setAutoFilter(value)
IndividualFontConfigs getFontConfigs() / setFontConfigs(value)
boolean getIgnoreUselessShapes() / setIgnoreUselessShapes(value)
boolean getPreservePaddingSpacesInFormula() / setPreservePaddingSpacesInFormula(value)
setPaperSize(type)
type: int
- A