public class TxtLoadOptions
Constructor Summary |
---|
TxtLoadOptions()
Creates the options for loading text file. |
TxtLoadOptions(intloadFormat)
Creates the options for loading text file. |
Property Getters/Setters Summary | ||
---|---|---|
AutoFitterOptions | getAutoFitterOptions() | |
void | ||
Gets and sets the auto fitter options | ||
boolean | getCheckDataValid() | |
void | setCheckDataValid(booleanvalue) | |
Check whether data is valid in the template file. | ||
boolean | getCheckExcelRestriction() | |
void | setCheckExcelRestriction(booleanvalue) | |
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() | |
void | setConvertDateTimeData(booleanvalue) | |
Gets or sets a value that indicates whether the string in text file is converted to date data. | ||
boolean | getConvertNumericData() | |
void | setConvertNumericData(booleanvalue) | |
Gets or sets a value that indicates whether the string in text file is converted to numeric data. | ||
com.aspose.cells.Encoding | getEncoding() | |
void | setEncoding(com.aspose.cells.Encodingvalue) | |
Gets and sets the default encoding.Only applies for csv file. | ||
IndividualFontConfigs | getFontConfigs() | |
void | ||
Gets and sets individual font configs.
Only works for the |
||
boolean | hasFormula() | |
void | setHasFormula(booleanvalue) | |
Indicates whether the text is formula if it starts with "=". | ||
boolean | getIgnoreNotPrinted() | |
void | setIgnoreNotPrinted(booleanvalue) | |
Ignore the data which are not printed if directly printing the file | ||
InterruptMonitor | getInterruptMonitor() | |
void | ||
Gets and sets the interrupt monitor. | ||
boolean | isMultiEncoded() | |
void | setMultiEncoded(booleanvalue) | |
True means that the file contains several encoding. | ||
boolean | getKeepPrecision() | |
void | setKeepPrecision(booleanvalue) | |
Indicates whether not parsing a string value if the length is 15. | ||
boolean | getKeepUnparsedData() | |
void | setKeepUnparsedData(booleanvalue) | |
Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true. | ||
int | getLanguageCode() | |
void | setLanguageCode(intvalue) | |
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() | |
void | ||
The data handler for processing cells data when reading template file. | ||
LoadFilter | getLoadFilter() | |
void | setLoadFilter(LoadFilter value) | |
The filter to denote how to load data. | ||
int | getLoadFormat() | |
Gets the load format.
The value of the property is LoadFormat integer constant. |
||
int | getLoadStyleStrategy() | |
void | setLoadStyleStrategy(intvalue) | |
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() | |
void | setLocale(java.util.Localevalue) | |
Gets and sets the Locale used for workbook at the time the file was loaded. | ||
int | getMemorySetting() | |
void | setMemorySetting(intvalue) | |
Gets or sets the memory usage options. The value of the property is MemorySetting integer constant. | ||
boolean | getParsingFormulaOnOpen() | |
void | setParsingFormulaOnOpen(booleanvalue) | |
Indicates whether parsing the formula when reading the file. | ||
boolean | getParsingPivotCachedRecords() | |
void | setParsingPivotCachedRecords(booleanvalue) | |
Inidicates whether parsing pivot cached records when loadiing the file. The default value is false. | ||
java.lang.String | getPassword() | |
void | setPassword(java.lang.Stringvalue) | |
Gets and set the password of the workbook. | ||
com.aspose.cells.ICustomParser[] | getPreferredParsers() | |
void | setPreferredParsers(com.aspose.cells.ICustomParser[]value) | |
Gets and sets preferred value parsers for loading text file. | ||
int | getRegion() | |
void | setRegion(intvalue) | |
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. | ||
char | getSeparator() | |
void | setSeparator(charvalue) | |
Gets and sets character separator of text file. | ||
java.lang.String | getSeparatorString() | |
void | setSeparatorString(java.lang.Stringvalue) | |
Gets and sets the a string value as separator. | ||
java.lang.String | getStandardFont() | |
void | setStandardFont(java.lang.Stringvalue) | |
Sets the default standard font name | ||
double | getStandardFontSize() | |
void | setStandardFontSize(doublevalue) | |
Sets the default standard font size. | ||
boolean | getTreatConsecutiveDelimitersAsOne() | |
void | setTreatConsecutiveDelimitersAsOne(booleanvalue) | |
Whether consecutive delimiters should be treated as one. | ||
IWarningCallback | getWarningCallback() | |
void | ||
Gets or sets warning callback. |
Method Summary | ||
---|---|---|
void | setPaperSize(int type) | |
Sets the default print paper size from default printer's setting.
|
public TxtLoadOptions()
public TxtLoadOptions(int loadFormat)
loadFormat
- A public char getSeparator() / public void setSeparator(char value)
public java.lang.String getSeparatorString() / public void setSeparatorString(java.lang.String value)
public boolean isMultiEncoded() / public void setMultiEncoded(boolean value)
public com.aspose.cells.ICustomParser[] getPreferredParsers() / public void setPreferredParsers(com.aspose.cells.ICustomParser[] value)
public boolean hasFormula() / public void setHasFormula(boolean value)
public boolean getTreatConsecutiveDelimitersAsOne() / public void setTreatConsecutiveDelimitersAsOne(boolean value)
public com.aspose.cells.Encoding getEncoding() / public void setEncoding(com.aspose.cells.Encoding value)
public int getLoadStyleStrategy() / public void setLoadStyleStrategy(int value)
public boolean getConvertNumericData() / public void setConvertNumericData(boolean value)
public boolean getConvertDateTimeData() / public void setConvertDateTimeData(boolean value)
public boolean getKeepPrecision() / public void setKeepPrecision(boolean value)
public int getLoadFormat()
public java.lang.String getPassword() / public void setPassword(java.lang.String value)
public boolean getParsingFormulaOnOpen() / public void setParsingFormulaOnOpen(boolean value)
public boolean getParsingPivotCachedRecords() / public void setParsingPivotCachedRecords(boolean value)
public int getLanguageCode() / public void setLanguageCode(int value)
public int getRegion() / public void setRegion(int value)
public java.util.Locale getLocale() / public void setLocale(java.util.Locale value)
public java.lang.String getStandardFont() / public void setStandardFont(java.lang.String value)
public double getStandardFontSize() / public void setStandardFontSize(double value)
public InterruptMonitor getInterruptMonitor() / public void setInterruptMonitor(InterruptMonitor value)
public boolean getIgnoreNotPrinted() / public void setIgnoreNotPrinted(boolean value)
public boolean getCheckDataValid() / public void setCheckDataValid(boolean value)
public boolean getCheckExcelRestriction() / public void setCheckExcelRestriction(boolean value)
public boolean getKeepUnparsedData() / public void setKeepUnparsedData(boolean value)
public LoadFilter getLoadFilter() / public void setLoadFilter(LoadFilter value)
public LightCellsDataHandler getLightCellsDataHandler() / public void setLightCellsDataHandler(LightCellsDataHandler value)
public int getMemorySetting() / public void setMemorySetting(int value)
public IWarningCallback getWarningCallback() / public void setWarningCallback(IWarningCallback value)
public AutoFitterOptions getAutoFitterOptions() / public void setAutoFitterOptions(AutoFitterOptions value)
public IndividualFontConfigs getFontConfigs() / public void setFontConfigs(IndividualFontConfigs value)
public void setPaperSize(int type)
type
- A