Constructor Summary |
---|
TxtLoadOptions()
Creates the options for loading text file. |
TxtLoadOptions(loadFormat)
Creates the options for loading text file. |
Property Getters/Setters Summary | ||
---|---|---|
method | getAutoFilter() | |
method | setAutoFilter(value) | |
Indicates whether auto filtering the data when loading the files. | ||
method | getAutoFitterOptions() | |
method | setAutoFitterOptions(value) | |
Gets and sets the auto fitter options | ||
method | getCheckDataValid() | |
method | setCheckDataValid(value) | |
Check whether data is valid in the template file. | ||
method | getCheckExcelRestriction() | |
method | setCheckExcelRestriction(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. | ||
method | getConvertDateTimeData() | |
method | setConvertDateTimeData(value) | |
Gets or sets a value that indicates whether the string in text file is converted to date data. | ||
method | getConvertNumericData() | |
method | setConvertNumericData(value) | |
Gets or sets a value that indicates whether the string in text file is converted to numeric data. | ||
method | getDefaultStyleSettings() | |
Gets the default style settings for initializing styles of the workbook
|
||
method | getEncoding() | |
method | setEncoding(value) | |
Gets and sets the default encoding. Only applies for csv file. | ||
method | getExtendToNextSheet() | |
method | setExtendToNextSheet(value) | |
Whether extends data to next sheet when the rows or columns of data exceed limit. If this property is true, extra data will be extended to next sheet behind current one(if current sheet is the last one, new sheet will be appended to current workbook). If this property is false, the data exceeds limit will be ignored. Default is false; | ||
method | getFontConfigs() | |
method | setFontConfigs(value) | |
Gets and sets individual font configs.
Only works for the |
||
method | hasFormula() | |
method | setHasFormula(value) | |
Indicates whether the text is formula if it starts with "=". | ||
method | hasTextQualifier() | |
method | setHasTextQualifier(value) | |
Whether there is text qualifier for cell value. Default is true. | ||
method | getIgnoreNotPrinted() | |
method | setIgnoreNotPrinted(value) | |
Ignore the data which are not printed if directly printing the file | ||
method | getInterruptMonitor() | |
method | setInterruptMonitor(value) | |
Gets and sets the interrupt monitor. | ||
method | isMultiEncoded() | |
method | setMultiEncoded(value) | |
True means that the file contains several encoding. | ||
method | getKeepPrecision() | |
method | setKeepPrecision(value) | |
Indicates whether not parsing a string value if the length is 15. | ||
method | getKeepUnparsedData() | |
method | setKeepUnparsedData(value) | |
Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true. | ||
method | getLanguageCode() | |
method | setLanguageCode(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. | ||
method | getLightCellsDataHandler() | |
method | setLightCellsDataHandler(value) | |
The data handler for processing cells data when reading template file. | ||
method | getLoadFilter() | |
method | setLoadFilter(value) | |
The filter to denote how to load data. | ||
method | getLoadFormat() | |
Gets the load format.
The value of the property is LoadFormat integer constant. |
||
method | getLoadStyleStrategy() | |
method | setLoadStyleStrategy(value) | |
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. | ||
method | getLocale() | |
method | setLocale(value) | |
Gets and sets the Locale used for workbook at the time the file was loaded. | ||
method | getMemorySetting() | |
method | setMemorySetting(value) | |
Gets or sets the memory usage options. The value of the property is MemorySetting integer constant. | ||
method | getParsingFormulaOnOpen() | |
method | setParsingFormulaOnOpen(value) | |
Indicates whether parsing the formula when reading the file. | ||
method | getParsingPivotCachedRecords() | |
method | setParsingPivotCachedRecords(value) | |
Indicates whether parsing pivot cached records when loading the file. The default value is false. | ||
method | getPassword() | |
method | setPassword(value) | |
Gets and set the password of the workbook. | ||
method | getPreferredParsers() | |
method | setPreferredParsers(value) | |
Gets and sets preferred value parsers for loading text file. | ||
method | getRegion() | |
method | setRegion(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. | ||
method | getSeparator() | |
method | setSeparator(value) | |
Gets and sets character separator of text file. | ||
method | getSeparatorString() | |
method | setSeparatorString(value) | |
Gets and sets a string value as separator. | ||
method | getStandardFont() | |
method | setStandardFont(value) | |
Sets the default standard font name | ||
method | getStandardFontSize() | |
method | setStandardFontSize(value) | |
Sets the default standard font size. | ||
method | getTextQualifier() | |
method | setTextQualifier(value) | |
Specifies the text qualifier for cell values. Default qualifier is '"'. | ||
method | getTreatConsecutiveDelimitersAsOne() | |
method | ||
Whether consecutive delimiters should be treated as one. | ||
method | getTreatQuotePrefixAsValue() | |
method | setTreatQuotePrefixAsValue(value) | |
Indicates whether the leading single quote sign should be taken as part of the value of one cell.
Default is true. If it is false, the leading single quote will be removed from corresponding cell's value
and |
Method Summary | ||
---|---|---|
method | setPaperSize(type) | |
Sets the default print paper size from default printer's setting.
|
TxtLoadOptions()
TxtLoadOptions(loadFormat)
loadFormat: int
- A char getSeparator() / setSeparator(value)
String getSeparatorString() / setSeparatorString(value)
boolean isMultiEncoded() / setMultiEncoded(value)
ICustomParser[] getPreferredParsers() / setPreferredParsers(value)
boolean hasFormula() / setHasFormula(value)
boolean hasTextQualifier() / setHasTextQualifier(value)
char getTextQualifier() / setTextQualifier(value)
boolean getTreatConsecutiveDelimitersAsOne() / setTreatConsecutiveDelimitersAsOne(value)
boolean getTreatQuotePrefixAsValue() / setTreatQuotePrefixAsValue(value)
boolean getExtendToNextSheet() / setExtendToNextSheet(value)
Encoding getEncoding() / setEncoding(value)
int getLoadStyleStrategy() / setLoadStyleStrategy(value)
boolean getConvertNumericData() / setConvertNumericData(value)
boolean getConvertDateTimeData() / setConvertDateTimeData(value)
boolean getKeepPrecision() / setKeepPrecision(value)
int getLoadFormat()
String getPassword() / setPassword(value)
boolean getParsingFormulaOnOpen() / setParsingFormulaOnOpen(value)
boolean getParsingPivotCachedRecords() / setParsingPivotCachedRecords(value)
int getLanguageCode() / setLanguageCode(value)
int getRegion() / setRegion(value)
Locale getLocale() / setLocale(value)
DefaultStyleSettings getDefaultStyleSettings()
String getStandardFont() / setStandardFont(value)
float getStandardFontSize() / setStandardFontSize(value)
AbstractInterruptMonitor getInterruptMonitor() / setInterruptMonitor(value)
boolean getIgnoreNotPrinted() / setIgnoreNotPrinted(value)
boolean getCheckDataValid() / setCheckDataValid(value)
boolean getCheckExcelRestriction() / setCheckExcelRestriction(value)
boolean getKeepUnparsedData() / setKeepUnparsedData(value)
LoadFilter getLoadFilter() / setLoadFilter(value)
LightCellsDataHandler getLightCellsDataHandler() / setLightCellsDataHandler(value)
int getMemorySetting() / setMemorySetting(value)
AutoFitterOptions getAutoFitterOptions() / setAutoFitterOptions(value)
boolean getAutoFilter() / setAutoFilter(value)
IndividualFontConfigs getFontConfigs() / setFontConfigs(value)
setPaperSize(type)
type: int
- A