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