com.aspose.cells
Class LoadOptions

java.lang.Object
    extended by com.aspose.cells.LoadOptions
Direct Known Subclasses:
AbstractTextLoadOptions, JsonLoadOptions, OdsLoadOptions, XmlLoadOptions

public class LoadOptions 
extends java.lang.Object

Represents the options of loading the file.


Constructor Summary
LoadOptions()
           Creates an options of loading the file.
LoadOptions(int loadFormat)
           Creates an options of loading the file.
 
Property Getters/Setters Summary
booleangetAutoFilter()
voidsetAutoFilter(boolean)
           Indicates whether auto filtering the data when loading the files.
AutoFitterOptionsgetAutoFitterOptions()
voidsetAutoFitterOptions(AutoFitterOptions)
           Gets and sets the auto fitter options
booleangetCheckDataValid()
voidsetCheckDataValid(boolean)
           Check whether data is valid in the template file.
booleangetCheckExcelRestriction()
voidsetCheckExcelRestriction(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.
DefaultStyleSettingsgetDefaultStyleSettings()
           Gets the default style settings for initializing styles of the workbook
IndividualFontConfigsgetFontConfigs()
voidsetFontConfigs(IndividualFontConfigs)
           Gets and sets individual font configs. Only works for the Workbook which uses this LoadOptions to load.>
booleangetIgnoreNotPrinted()
voidsetIgnoreNotPrinted(boolean)
           Ignore the data which are not printed if directly printing the file
AbstractInterruptMonitorgetInterruptMonitor()
voidsetInterruptMonitor(AbstractInterruptMonitor)
           Gets and sets the interrupt monitor.
booleangetKeepUnparsedData()
voidsetKeepUnparsedData(boolean)
           Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true.
intgetLanguageCode()
voidsetLanguageCode(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.
LightCellsDataHandlergetLightCellsDataHandler()
voidsetLightCellsDataHandler(LightCellsDataHandler)
           The data handler for processing cells data when reading template file.
LoadFiltergetLoadFilter()
voidsetLoadFilter(LoadFilter)
           The filter to denote how to load data.
intgetLoadFormat()
           Gets the load format. The value of the property is LoadFormat integer constant.
java.util.LocalegetLocale()
voidsetLocale(java.util.Locale)
           Gets and sets the Locale used for workbook at the time the file was loaded.
intgetMemorySetting()
voidsetMemorySetting(int)
           Gets or sets the memory usage options. The value of the property is MemorySetting integer constant.
booleangetParsingFormulaOnOpen()
voidsetParsingFormulaOnOpen(boolean)
           Indicates whether parsing the formula when reading the file.
booleangetParsingPivotCachedRecords()
voidsetParsingPivotCachedRecords(boolean)
           Indicates whether parsing pivot cached records when loading the file. The default value is false.
java.lang.StringgetPassword()
voidsetPassword(java.lang.String)
           Gets and set the password of the workbook.
intgetRegion()
voidsetRegion(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.StringgetStandardFont()
voidsetStandardFont(java.lang.String)
           Sets the default standard font name
doublegetStandardFontSize()
voidsetStandardFontSize(double)
           Sets the default standard font size.
IWarningCallbackgetWarningCallback()
voidsetWarningCallback(IWarningCallback)
           Gets or sets warning callback.
 
Method Summary
voidsetPaperSize(int type)
           Sets the default print paper size from default printer's setting.
 

Constructor Detail

LoadOptions

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

LoadOptions

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

Property Getters/Setters Detail

getLoadFormat

public int getLoadFormat()
Gets the load format. The value of the property is LoadFormat integer constant.

getPassword/setPassword

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

setPassword

public void setPassword(java.lang.String value)
Gets and set the password of the workbook.

getParsingFormulaOnOpen/setParsingFormulaOnOpen

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

setParsingFormulaOnOpen

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

getParsingPivotCachedRecords/setParsingPivotCachedRecords

public boolean getParsingPivotCachedRecords() / public void setParsingPivotCachedRecords(boolean value)
Indicates whether parsing pivot cached records when loading the file. The default value is false. Only applies for Excel Xlsx, Xltx, Xltm , Xlsm and xlsb file

setParsingPivotCachedRecords

public void setParsingPivotCachedRecords(boolean value)
Indicates whether parsing pivot cached records when loading the file. The default value is false. Only applies for Excel Xlsx, Xltx, Xltm , Xlsm and xlsb file

getLanguageCode/setLanguageCode

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.

setLanguageCode

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

public int getRegion() / public void setRegion(int 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.If you do not want to use the region saved in the file, please reset it after reading the file.

setRegion

public void setRegion(int 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.If you do not want to use the region saved in the file, please reset it after reading the file.

getLocale/setLocale

public java.util.Locale getLocale() / public void setLocale(java.util.Locale value)
Gets and sets the Locale used for workbook at the time the file was loaded.

setLocale

public void setLocale(java.util.Locale value)
Gets and sets the Locale used for workbook at the time the file was loaded.

getDefaultStyleSettings

public DefaultStyleSettings getDefaultStyleSettings()
Gets the default style settings for initializing styles of the workbook

getStandardFont/setStandardFont

public java.lang.String getStandardFont() / public void setStandardFont(java.lang.String value)
Sets the default standard font name NOTE: This member is now obsolete. Instead, please use DefaultStyleSettings. This property will be removed 12 months later since March 2022. Aspose apologizes for any inconvenience you may have experienced.

setStandardFont

public void setStandardFont(java.lang.String value)
Sets the default standard font name NOTE: This member is now obsolete. Instead, please use DefaultStyleSettings. This property will be removed 12 months later since March 2022. Aspose apologizes for any inconvenience you may have experienced.

getStandardFontSize/setStandardFontSize

public double getStandardFontSize() / public void setStandardFontSize(double value)
Sets the default standard font size. NOTE: This member is now obsolete. Instead, please use DefaultStyleSettings. This property will be removed 12 months later since March 2022. Aspose apologizes for any inconvenience you may have experienced.

setStandardFontSize

public void setStandardFontSize(double value)
Sets the default standard font size. NOTE: This member is now obsolete. Instead, please use DefaultStyleSettings. This property will be removed 12 months later since March 2022. Aspose apologizes for any inconvenience you may have experienced.

getInterruptMonitor/setInterruptMonitor

public AbstractInterruptMonitor getInterruptMonitor() / public void setInterruptMonitor(AbstractInterruptMonitor value)
Gets and sets the interrupt monitor.

setInterruptMonitor

public void setInterruptMonitor(AbstractInterruptMonitor value)
Gets and sets the interrupt monitor.

getIgnoreNotPrinted/setIgnoreNotPrinted

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

setIgnoreNotPrinted

public void setIgnoreNotPrinted(boolean value)
Ignore the data which are not printed if directly printing the file Only for xlsx file.

getCheckDataValid/setCheckDataValid

public boolean getCheckDataValid() / public void setCheckDataValid(boolean value)
Check whether data is valid in the template file.

setCheckDataValid

public void setCheckDataValid(boolean value)
Check whether data is valid in the template file.

getCheckExcelRestriction/setCheckExcelRestriction

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.

setCheckExcelRestriction

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.

getKeepUnparsedData/setKeepUnparsedData

public boolean getKeepUnparsedData() / public void setKeepUnparsedData(boolean value)
Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true. For scenarios that user only needs to read some contents from template file and does not need to save the workbook back, set this property as false may improve performance, especially when using it together with some kind of LoadFilter,

setKeepUnparsedData

public void setKeepUnparsedData(boolean value)
Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true. For scenarios that user only needs to read some contents from template file and does not need to save the workbook back, set this property as false may improve performance, especially when using it together with some kind of LoadFilter,

getLoadFilter/setLoadFilter

public LoadFilter getLoadFilter() / public void setLoadFilter(LoadFilter value)
The filter to denote how to load data.

setLoadFilter

public void setLoadFilter(LoadFilter value)
The filter to denote how to load data.

getLightCellsDataHandler/setLightCellsDataHandler

public LightCellsDataHandler getLightCellsDataHandler() / public void setLightCellsDataHandler(LightCellsDataHandler value)
The data handler for processing cells data when reading template file.

setLightCellsDataHandler

public void setLightCellsDataHandler(LightCellsDataHandler value)
The data handler for processing cells data when reading template file.

getMemorySetting/setMemorySetting

public int getMemorySetting() / public void setMemorySetting(int value)
Gets or sets the memory usage options. The value of the property is MemorySetting integer constant.

setMemorySetting

public void setMemorySetting(int value)
Gets or sets the memory usage options. The value of the property is MemorySetting integer constant.

getWarningCallback/setWarningCallback

public IWarningCallback getWarningCallback() / public void setWarningCallback(IWarningCallback value)
Gets or sets warning callback.

setWarningCallback

public void setWarningCallback(IWarningCallback value)
Gets or sets warning callback.

getAutoFitterOptions/setAutoFitterOptions

public AutoFitterOptions getAutoFitterOptions() / public void setAutoFitterOptions(AutoFitterOptions value)
Gets and sets the auto fitter options Only for xlsx ,spreadsheetML file now.

setAutoFitterOptions

public void setAutoFitterOptions(AutoFitterOptions value)
Gets and sets the auto fitter options Only for xlsx ,spreadsheetML file now.

getAutoFilter/setAutoFilter

public boolean getAutoFilter() / public void setAutoFilter(boolean value)
Indicates whether auto filtering the data when loading the files. Sometimes although autofilter is set, the corresponding rows is not hidden in the file. Now only works for SpreadSheetML file.

setAutoFilter

public void setAutoFilter(boolean value)
Indicates whether auto filtering the data when loading the files. Sometimes although autofilter is set, the corresponding rows is not hidden in the file. Now only works for SpreadSheetML file.

getFontConfigs/setFontConfigs

public IndividualFontConfigs getFontConfigs() / public void setFontConfigs(IndividualFontConfigs value)
Gets and sets individual font configs. Only works for the Workbook which uses this LoadOptions to load.>

setFontConfigs

public void setFontConfigs(IndividualFontConfigs value)
Gets and sets individual font configs. Only works for the Workbook which uses this LoadOptions to load.>

Method Detail

setPaperSize

public void setPaperSize(int type)
Sets the default print paper size from default printer's setting. If there is no setting about paper size,MS Excel will use default printer's setting.
Parameters:
type - A PaperSizeType value. The default paper size.

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