Aspose::Cells::HtmlLoadOptions class

HtmlLoadOptions class

Represents options when importing a html file.

class HtmlLoadOptions : public Aspose::Cells::AbstractTextLoadOptions

Methods

MethodDescription
AbstractTextLoadOptions(AbstractTextLoadOptions_Impl* impl)Constructs from an implementation object.
AbstractTextLoadOptions(const AbstractTextLoadOptions& src)Copy constructor.
AbstractTextLoadOptions(const LoadOptions& src)Constructs from a parent object.
GetAutoFilter()Indicates whether auto filtering the data when loading the files.
GetAutoFitColsAndRows()Indicates whether auto-fit columns and rows. The default value is false.
GetAutoFitterOptions()Gets and sets the auto fitter options.
GetCheckDataValid()Check whether data is valid in the template file.
GetCheckExcelRestriction()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.
GetConvertDateTimeData()Gets or sets a value that indicates whether the string in text file is converted to date data.
GetConvertNumericData()Gets or sets a value that indicates whether the string in text file is converted to numeric data.
GetDefaultStyleSettings()Gets the default style settings for initializing styles of the workbook.
GetDeleteRedundantSpaces()Indicates whether delete redundant spaces when the text wraps lines using
tag. The default value is false.
GetEncoding()Gets and sets the default encoding. Only applies for csv file.
GetFontConfigs()Gets and sets individual font configs. Only works for the Workbook which uses this LoadOptions to load.
GetHasFormula()Indicates whether the text is formula if it starts with “=”.
GetIgnoreNotPrinted()Ignore the data which are not printed if directly printing the file.
GetIgnoreUselessShapes()Indicates whether ignoring useless shapes.
GetInterruptMonitor()Gets and sets the interrupt monitor.
GetKeepPrecision()Indicates whether not parsing a string value if the length is 15.
GetKeepUnparsedData()Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true.
GetLanguageCode()Gets or sets the user interface language of the Workbook version based on CountryCode that has saved the file.
GetLightCellsDataHandler()The data handler for processing cells data when reading template file.
GetLoadFilter()The filter to denote how to load data.
GetLoadFormat()Gets the load format.
GetLoadFormulas()Indicates whether importing formulas if the original html file contains formulas.
GetLoadStyleStrategy()Indicates the strategy to apply style for parsed values when converting string value to number or datetime.
GetMemorySetting()Gets or sets the memory usage options.
GetParsingFormulaOnOpen()Indicates whether parsing the formula when reading the file.
GetParsingPivotCachedRecords()Indicates whether parsing pivot cached records when loading the file. The default value is false.
GetPassword()Gets and set the password of the workbook.
GetPreservePaddingSpacesInFormula()Indicates whether preserve those spaces and line breaks that are padded between formula tokens while getting and setting formulas. Default value is false.
GetProgId()Gets the program id of creating the file. Only for MHT files.
GetRegion()Gets or sets the system regional settings based on CountryCode at the time the file was loaded.
GetSupportDivTag()Indicates whether support the layout of
tag when the html file contains it. The default value is false.
GetTableLoadOptions()Get the HtmlTableLoadOptionCollection instance.
GetWarningCallback()Gets or sets warning callback.
HtmlLoadOptions()Creates an options of loading the file.
explicit HtmlLoadOptions(LoadFormat loadFormat)Creates an options of loading the file.
HtmlLoadOptions(HtmlLoadOptions_Impl* impl)Constructs from an implementation object.
HtmlLoadOptions(const HtmlLoadOptions& src)Copy constructor.
HtmlLoadOptions(const AbstractTextLoadOptions& src)Constructs from a parent object.
IsNull() constChecks whether the implementation object is nullptr.
LoadOptions()Creates an options of loading the file.
explicit LoadOptions(LoadFormat loadFormat)Creates an options of loading the file.
LoadOptions(LoadOptions_Impl* impl)Constructs from an implementation object.
LoadOptions(const LoadOptions& src)Copy constructor.
explicit operator bool() constoperator bool()
operator=(const HtmlLoadOptions& src)operator=
operator=(const AbstractTextLoadOptions& src)operator=
operator=(const LoadOptions& src)operator=
SetAutoFilter(bool value)Indicates whether auto filtering the data when loading the files.
SetAutoFitColsAndRows(bool value)Indicates whether auto-fit columns and rows. The default value is false.
SetAutoFitterOptions(const AutoFitterOptions& value)Gets and sets the auto fitter options.
SetCheckDataValid(bool value)Check whether data is valid in the template file.
SetCheckExcelRestriction(bool 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.
SetConvertDateTimeData(bool value)Gets or sets a value that indicates whether the string in text file is converted to date data.
SetConvertNumericData(bool value)Gets or sets a value that indicates whether the string in text file is converted to numeric data.
SetDeleteRedundantSpaces(bool value)Indicates whether delete redundant spaces when the text wraps lines using
tag. The default value is false.
SetEncoding(EncodingType value)Gets and sets the default encoding. Only applies for csv file.
SetFontConfigs(const IndividualFontConfigs& value)Gets and sets individual font configs. Only works for the Workbook which uses this LoadOptions to load.
SetHasFormula(bool value)Indicates whether the text is formula if it starts with “=”.
SetIgnoreNotPrinted(bool value)Ignore the data which are not printed if directly printing the file.
SetIgnoreUselessShapes(bool value)Indicates whether ignoring useless shapes.
SetInterruptMonitor(AbstractInterruptMonitor* value)Gets and sets the interrupt monitor.
SetKeepPrecision(bool value)Indicates whether not parsing a string value if the length is 15.
SetKeepUnparsedData(bool value)Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true.
SetLanguageCode(CountryCode value)Gets or sets the user interface language of the Workbook version based on CountryCode that has saved the file.
SetLightCellsDataHandler(LightCellsDataHandler* value)The data handler for processing cells data when reading template file.
SetLoadFilter(LoadFilter* value)The filter to denote how to load data.
SetLoadFormulas(bool value)Indicates whether importing formulas if the original html file contains formulas.
SetLoadStyleStrategy(TxtLoadStyleStrategy value)Indicates the strategy to apply style for parsed values when converting string value to number or datetime.
SetMemorySetting(MemorySetting value)Gets or sets the memory usage options.
SetPaperSize(PaperSizeType type)Sets the default print paper size from default printer’s setting.
SetParsingFormulaOnOpen(bool value)Indicates whether parsing the formula when reading the file.
SetParsingPivotCachedRecords(bool value)Indicates whether parsing pivot cached records when loading the file. The default value is false.
SetPassword(const U16String& value)Gets and set the password of the workbook.
SetPassword(const char16_t* value)Gets and set the password of the workbook.
SetPreservePaddingSpacesInFormula(bool value)Indicates whether preserve those spaces and line breaks that are padded between formula tokens while getting and setting formulas. Default value is false.
SetRegion(CountryCode value)Gets or sets the system regional settings based on CountryCode at the time the file was loaded.
SetSupportDivTag(bool value)Indicates whether support the layout of
tag when the html file contains it. The default value is false.
SetWarningCallback(IWarningCallback* value)Gets or sets warning callback.
~AbstractTextLoadOptions()Destructor.
~HtmlLoadOptions()Destructor.
~LoadOptions()Destructor.

Fields

FieldDescription
_implThe implementation object.

See Also