public class LoadOptions
extends java.lang.Object
| Constructor and Description |
|---|
LoadOptions()
Creates an options of loading the file.
|
LoadOptions(int loadFormat)
Creates an options of loading the file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAutoFilter()
Indicates whether auto filtering the data when loading the files.
|
AutoFitterOptions |
getAutoFitterOptions()
Gets the auto fitter options
|
boolean |
getCheckDataValid()
Check whether data is valid in the template file.
|
boolean |
getCheckExcelRestriction()
Whether check restriction of excel file when user modify cells related objects.
|
DefaultStyleSettings |
getDefaultStyleSettings()
Gets the default style settings for initializing styles of the workbook
|
IndividualFontConfigs |
getFontConfigs()
Gets individual font configs.
|
boolean |
getIgnoreNotPrinted()
Ignore the data which are not printed if directly printing the file
|
boolean |
getIgnoreUselessShapes()
Indicates whether ignoring useless shapes.
|
AbstractInterruptMonitor |
getInterruptMonitor()
Gets the interrupt monitor.
|
boolean |
getKeepUnparsedData()
Whether keep the unparsed data in memory for the Workbook when it is loaded from template file.
|
int |
getLanguageCode()
Gets the user interface language of the Workbook version based on CountryCode that has saved the file.
|
LightCellsDataHandler |
getLightCellsDataHandler()
The data handler for processing cells data when reading template file.
|
LoadFilter |
getLoadFilter()
The filter to denote how to load data.
|
int |
getLoadFormat()
Gets the load format.
|
java.util.Locale |
getLocale()
Gets the regional settings used for the Workbook that will be loaded.
|
int |
getMemorySetting()
Gets the memory mode for loaded workbook.
|
boolean |
getParsingFormulaOnOpen()
Indicates whether parsing the formula when reading the file.
|
boolean |
getParsingPivotCachedRecords()
Indicates whether parsing pivot cached records when loading the file.
|
java.lang.String |
getPassword()
Gets the password of the workbook.
|
boolean |
getPreservePaddingSpacesInFormula()
Indicates whether preserve those spaces and line breaks that are padded between formula tokens
while getting and setting formulas.
|
int |
getRegion()
Gets the regional settings used for the Workbook that will be loaded.
|
java.lang.String |
getStandardFont()
Deprecated.
Use DefaultStyleSettings.FontName property instead.
|
double |
getStandardFontSize()
Deprecated.
Use DefaultStyleSettings.FontSize property instead.
|
IWarningCallback |
getWarningCallback()
Gets warning callback.
|
void |
setAutoFilter(boolean value)
Indicates whether auto filtering the data when loading the files.
|
void |
setAutoFitterOptions(AutoFitterOptions value)
Sets the auto fitter options
|
void |
setCheckDataValid(boolean value)
Check whether data is valid in the template file.
|
void |
setCheckExcelRestriction(boolean value)
Whether check restriction of excel file when user modify cells related objects.
|
void |
setFontConfigs(IndividualFontConfigs value)
Sets individual font configs.
|
void |
setIgnoreNotPrinted(boolean value)
Ignore the data which are not printed if directly printing the file
|
void |
setIgnoreUselessShapes(boolean value)
Indicates whether ignoring useless shapes.
|
void |
setInterruptMonitor(AbstractInterruptMonitor value)
Sets the interrupt monitor.
|
void |
setKeepUnparsedData(boolean value)
Whether keep the unparsed data in memory for the Workbook when it is loaded from template file.
|
void |
setLanguageCode(int value)
Sets the user interface language of the Workbook version based on CountryCode that has saved the file.
|
void |
setLightCellsDataHandler(LightCellsDataHandler value)
The data handler for processing cells data when reading template file.
|
void |
setLoadFilter(LoadFilter value)
The filter to denote how to load data.
|
void |
setLocale(java.util.Locale value)
Sets the regional settings used for the Workbook that will be loaded.
|
void |
setMemorySetting(int value)
Sets the memory mode for loaded workbook.
|
void |
setPaperSize(int type)
Sets the default print paper size from default printer's setting.
|
void |
setParsingFormulaOnOpen(boolean value)
Indicates whether parsing the formula when reading the file.
|
void |
setParsingPivotCachedRecords(boolean value)
Indicates whether parsing pivot cached records when loading the file.
|
void |
setPassword(java.lang.String value)
Sets the password of the workbook.
|
void |
setPreservePaddingSpacesInFormula(boolean value)
Indicates whether preserve those spaces and line breaks that are padded between formula tokens
while getting and setting formulas.
|
void |
setRegion(int value)
Sets the regional settings used for the Workbook that will be loaded.
|
void |
setStandardFont(java.lang.String value)
Deprecated.
Use DefaultStyleSettings.FontName property instead.
|
void |
setStandardFontSize(double value)
Deprecated.
Use DefaultStyleSettings.FontSize property instead.
|
void |
setWarningCallback(IWarningCallback value)
Sets warning callback.
|
public LoadOptions()
public LoadOptions(int loadFormat)
loadFormat - LoadFormat. The loading format.public int getLoadFormat()
See LoadFormat.
public java.lang.String getPassword()
public void setPassword(java.lang.String value)
public boolean getParsingFormulaOnOpen()
Remarks
Only applies for Excel Xlsx, Xltx, Xltm and Xlsm file because the formulas in the files are stored with a string formula.public void setParsingFormulaOnOpen(boolean value)
Remarks
Only applies for Excel Xlsx, Xltx, Xltm and Xlsm file because the formulas in the files are stored with a string formula.public boolean getParsingPivotCachedRecords()
Remarks
Only applies for Excel Xlsx, Xltx, Xltm , Xlsm and xlsb filepublic void setParsingPivotCachedRecords(boolean value)
Remarks
Only applies for Excel Xlsx, Xltx, Xltm , Xlsm and xlsb filepublic void setPaperSize(int type)
Remarks
If there is no setting about paper size,MS Excel will use default printer's setting.type - PaperSizeType. The default paper size.public int getLanguageCode()
See CountryCode.
public void setLanguageCode(int value)
See CountryCode.
public int getRegion()
See CountryCode.
Remarks
The regional settings may be used for initializing some features for the workbook such as fonts, themes, and so on. For text based file formats, such as CSV, HTML, ..., the regional setting also will be used to detect number formats and parse text values to numeric or datetime values for cells. This setting will be kept for the instantiated workbook later, that is,WorkbookSettings.getRegion() of the workbook will use the same region
with this property.public void setRegion(int value)
See CountryCode.
Remarks
The regional settings may be used for initializing some features for the workbook such as fonts, themes, and so on. For text based file formats, such as CSV, HTML, ..., the regional setting also will be used to detect number formats and parse text values to numeric or datetime values for cells. This setting will be kept for the instantiated workbook later, that is,WorkbookSettings.getRegion() of the workbook will use the same region
with this property.public java.util.Locale getLocale()
Remarks
This property has the same effect withgetRegion() for setting regional settings.public void setLocale(java.util.Locale value)
Remarks
This property has the same effect withgetRegion() for setting regional settings.public DefaultStyleSettings getDefaultStyleSettings()
public java.lang.String getStandardFont()
Remarks
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.public void setStandardFont(java.lang.String value)
Remarks
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.public double getStandardFontSize()
Remarks
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.public void setStandardFontSize(double value)
Remarks
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.public AbstractInterruptMonitor getInterruptMonitor()
public void setInterruptMonitor(AbstractInterruptMonitor value)
public boolean getIgnoreNotPrinted()
Remarks
Only for xlsx file.public void setIgnoreNotPrinted(boolean value)
Remarks
Only for xlsx file.public boolean getCheckDataValid()
public void setCheckDataValid(boolean value)
public boolean getCheckExcelRestriction()
public void setCheckExcelRestriction(boolean value)
public boolean getKeepUnparsedData()
Remarks
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,public void setKeepUnparsedData(boolean value)
Remarks
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,public LoadFilter getLoadFilter()
public void setLoadFilter(LoadFilter value)
public LightCellsDataHandler getLightCellsDataHandler()
public void setLightCellsDataHandler(LightCellsDataHandler value)
public int getMemorySetting()
See MemorySetting.
Remarks
For more details about memory mode, please seeCells.getMemorySetting().public void setMemorySetting(int value)
See MemorySetting.
Remarks
For more details about memory mode, please seeCells.getMemorySetting().public IWarningCallback getWarningCallback()
public void setWarningCallback(IWarningCallback value)
public AutoFitterOptions getAutoFitterOptions()
Remarks
Only for xlsx ,spreadsheetML file now.public void setAutoFitterOptions(AutoFitterOptions value)
Remarks
Only for xlsx ,spreadsheetML file now.public boolean getAutoFilter()
Remarks
Sometimes although autofilter is set, the corresponding rows is not hidden in the file. Now only works for SpreadSheetML file.public void setAutoFilter(boolean value)
Remarks
Sometimes although autofilter is set, the corresponding rows is not hidden in the file. Now only works for SpreadSheetML file.public IndividualFontConfigs getFontConfigs()
Workbook which uses this LoadOptions to load.public void setFontConfigs(IndividualFontConfigs value)
Workbook which uses this LoadOptions to load.public boolean getIgnoreUselessShapes()
Remarks
Only works for xlsx,xlsb, and xlsm files. There are many overlapping identical shapes which are useless in some files, we can ingore them when loading files.public void setIgnoreUselessShapes(boolean value)
Remarks
Only works for xlsx,xlsb, and xlsm files. There are many overlapping identical shapes which are useless in some files, we can ingore them when loading files.public boolean getPreservePaddingSpacesInFormula()
Remarks
After loading workbook from template file with this option,FormulaSettings.getPreservePaddingSpaces()
will be set to the same value with this property.public void setPreservePaddingSpacesInFormula(boolean value)
Remarks
After loading workbook from template file with this option,FormulaSettings.getPreservePaddingSpaces()
will be set to the same value with this property.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.