com.aspose.cells
Class HTMLLoadOptions

java.lang.Object
  extended by LoadOptions
      extended by com.aspose.cells.HTMLLoadOptions

public class HTMLLoadOptions 
extends LoadOptions

Represents options when importing a html file.

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.StringgetAttachedFilesDirectory()
voidsetAttachedFilesDirectory(java.lang.String value)
           The directory that the attached files will be saved to.
booleangetCheckExcelRestriction()→ inherited from LoadOptions
voidsetCheckExcelRestriction(boolean 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.
booleangetConvertDateTimeData()
voidsetConvertDateTimeData(boolean value)
           if set true, do format, default is true
booleangetConvertNumericData()
voidsetConvertNumericData(boolean value)
           if set true, do format, default is true
com.aspose.cells.EncodinggetEncoding()
voidsetEncoding(com.aspose.cells.Encoding value)
           If not set,use Encoding.Default as default enconding type.
booleangetIgnoreNotPrinted()→ inherited from LoadOptions
voidsetIgnoreNotPrinted(boolean value)
           Ignore the data which are not printed if directly printing the file
InterruptMonitorgetInterruptMonitor()→ inherited from LoadOptions
voidsetInterruptMonitor(InterruptMonitor value)
           Gets and sets the interrupt monitor.
intgetLanguageCode()→ inherited from LoadOptions
voidsetLanguageCode(int 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.
booleangetLoadDataAndFormatting()→ inherited from LoadOptions
voidsetLoadDataAndFormatting(boolean value)
           If true, only loads data , formulas and formatting from the file,other contents and settings are all discarded. For example : shapes ,validation,conditional formatting,pivotables are not loaded.
booleangetLoadDataOnly()→ inherited from LoadOptions
voidsetLoadDataOnly(boolean value)
           If true, only loads data and formulas from the file,other contents and settings are all discarded.
LoadDataOptiongetLoadDataOptions()→ inherited from LoadOptions
voidsetLoadDataOptions(LoadDataOption value)
           Only effects when OnlyLoadData is true.
intgetLoadFormat()→ inherited from LoadOptions
           Gets and set the load format. The value of the property is LoadFormat integer constant.
booleangetLoadFormulas()
voidsetLoadFormulas(boolean value)
           Indicates whether importing formulas if the orignal html file contains falmulas
java.util.LocalegetLocale()→ inherited from LoadOptions
voidsetLocale(java.util.Locale value)
           Gets and sets the Locale used for workbook.
booleangetOnlyLoadDocumentProperties()→ inherited from LoadOptions
voidsetOnlyLoadDocumentProperties(boolean value)
           If true, only loads document properties
booleangetParsingFormulaOnOpen()→ inherited from LoadOptions
voidsetParsingFormulaOnOpen(boolean value)
           Indicates whether parsing the formula when reading the file.
java.lang.StringgetPassword()→ inherited from LoadOptions
voidsetPassword(java.lang.String value)
           Gets and set the password of the workbook.
intgetRegion()→ inherited from LoadOptions
voidsetRegion(int value)
           Gets or sets the system regional settings based on CountryCode at the time the file was saved. The value of the property is CountryCode integer constant.
java.lang.StringgetStandardFont()→ inherited from LoadOptions
voidsetStandardFont(java.lang.String value)
           Sets the default standard font name
doublegetStandardFontSize()→ inherited from LoadOptions
voidsetStandardFontSize(double value)
           Sets the default standard font size.
 

Constructor Detail

HTMLLoadOptions

public HTMLLoadOptions()
Creates an options of loading the file.

HTMLLoadOptions

public HTMLLoadOptions(int loadFormat)
Creates an options of loading the file.
Parameters:
loadFormat - A LoadFormat value. The loading format.

Property Getters/Setters Detail

getAttachedFilesDirectory/setAttachedFilesDirectory

public java.lang.String getAttachedFilesDirectory() / public void setAttachedFilesDirectory(java.lang.String value)
The directory that the attached files will be saved to.

getLoadFormulas/setLoadFormulas

public boolean getLoadFormulas() / public void setLoadFormulas(boolean value)
Indicates whether importing formulas if the orignal html file contains falmulas

getEncoding/setEncoding

public com.aspose.cells.Encoding getEncoding() / public void setEncoding(com.aspose.cells.Encoding value)
If not set,use Encoding.Default as default enconding type.

getConvertNumericData/setConvertNumericData

public boolean getConvertNumericData() / public void setConvertNumericData(boolean value)
if set true, do format, default is true

getConvertDateTimeData/setConvertDateTimeData

public boolean getConvertDateTimeData() / public void setConvertDateTimeData(boolean value)
if set true, do format, default is true

getLoadFormat

→ inherited from LoadOptions
public int getLoadFormat()
Gets and set the load format. The value of the property is LoadFormat integer constant.

getPassword/setPassword

→ inherited from LoadOptions
public java.lang.String getPassword() / public void setPassword(java.lang.String value)
Gets and set the password of the workbook.

getParsingFormulaOnOpen/setParsingFormulaOnOpen

→ inherited from LoadOptions
public boolean getParsingFormulaOnOpen() / public void setParsingFormulaOnOpen(boolean value)
Indicates whether parsing the formula when reading the file. Only applies for Excel Xlsx,Xltx, Xltm,Xlsm file because the formulas in the files are stored with a string formula.

getLoadDataAndFormatting/setLoadDataAndFormatting

→ inherited from LoadOptions
public boolean getLoadDataAndFormatting() / public void setLoadDataAndFormatting(boolean value)
If true, only loads data , formulas and formatting from the file,other contents and settings are all discarded. For example : shapes ,validation,conditional formatting,pivotables are not loaded.

getLoadDataOnly/setLoadDataOnly

→ inherited from LoadOptions
public boolean getLoadDataOnly() / public void setLoadDataOnly(boolean value)
If true, only loads data and formulas from the file,other contents and settings are all discarded.

getOnlyLoadDocumentProperties/setOnlyLoadDocumentProperties

→ inherited from LoadOptions
public boolean getOnlyLoadDocumentProperties() / public void setOnlyLoadDocumentProperties(boolean value)
If true, only loads document properties Only for excel 97- 2003 xls file. If the file is encrypted, we still can get the document properties without password

getLoadDataOptions/setLoadDataOptions

→ inherited from LoadOptions
public LoadDataOption getLoadDataOptions() / public void setLoadDataOptions(LoadDataOption value)
Only effects when OnlyLoadData is true.

getLanguageCode/setLanguageCode

→ inherited from LoadOptions
public int getLanguageCode() / public void setLanguageCode(int 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.

getRegion/setRegion

→ inherited from LoadOptions
public int getRegion() / public void setRegion(int value)
Gets or sets the system regional settings based on CountryCode at the time the file was saved. The value of the property is CountryCode integer constant.If you do not want to use the region saved in the file, please reset it after reading the file.

getLocale/setLocale

→ inherited from LoadOptions
public java.util.Locale getLocale() / public void setLocale(java.util.Locale value)
Gets and sets the Locale used for workbook.

getStandardFont/setStandardFont

→ inherited from LoadOptions
public java.lang.String getStandardFont() / public void setStandardFont(java.lang.String value)
Sets the default standard font name

getStandardFontSize/setStandardFontSize

→ inherited from LoadOptions
public double getStandardFontSize() / public void setStandardFontSize(double value)
Sets the default standard font size.

getInterruptMonitor/setInterruptMonitor

→ inherited from LoadOptions
public InterruptMonitor getInterruptMonitor() / public void setInterruptMonitor(InterruptMonitor value)
Gets and sets the interrupt monitor.

getIgnoreNotPrinted/setIgnoreNotPrinted

→ inherited from LoadOptions
public boolean getIgnoreNotPrinted() / public void setIgnoreNotPrinted(boolean value)
Ignore the data which are not printed if directly printing the file Only for xlsx file.

getCheckExcelRestriction/setCheckExcelRestriction

→ inherited from LoadOptions
public boolean getCheckExcelRestriction() / public void setCheckExcelRestriction(boolean 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.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.