Constructor Summary |
---|
TxtLoadOptions()
Creates the options for loading text file. |
TxtLoadOptions(loadFormat)
Creates the options for loading text file. |
Property Getters/Setters Summary | ||
---|---|---|
function | getAutoFilter() | |
function | setAutoFilter(value) | |
Indicates whether auto filtering the data when loading the files. | ||
function | getAutoFitterOptions() | |
function | setAutoFitterOptions(value) | |
Gets and sets the auto fitter options | ||
function | getCheckDataValid() | |
function | setCheckDataValid(value) | |
Check whether data is valid in the template file. | ||
function | getCheckExcelRestriction() | |
function | 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. | ||
function | getConvertDateTimeData() | |
function | setConvertDateTimeData(value) | |
Gets or sets a value that indicates whether the string in text file is converted to date data. | ||
function | getConvertNumericData() | |
function | setConvertNumericData(value) | |
Gets or sets a value that indicates whether the string in text file is converted to numeric data. | ||
function | getDefaultStyleSettings() | |
Gets the default style settings for initializing styles of the workbook
|
||
function | getEncoding() | |
function | setEncoding(value) | |
Gets and sets the default encoding. Only applies for csv file. | ||
function | getExtendToNextSheet() | |
function | setExtendToNextSheet(value) | |
Whether extends data to next sheet when the rows or columns of data exceed limit. Default is false. | ||
function | getFontConfigs() | |
function | setFontConfigs(value) | |
Gets and sets individual font configs.
Only works for the |
||
function | hasFormula() | |
function | setHasFormula(value) | |
Indicates whether the text is formula if it starts with "=". | ||
function | hasTextQualifier() | |
function | setHasTextQualifier(value) | |
Whether there is text qualifier for cell value. Default is true. | ||
function | getHeaderColumnsCount() | |
function | setHeaderColumnsCount(value) | |
The count of header columns to be repeated for extended sheets. | ||
function | getHeaderRowsCount() | |
function | setHeaderRowsCount(value) | |
The count of header rows to be repeated for extended sheets. | ||
function | getIgnoreNotPrinted() | |
function | setIgnoreNotPrinted(value) | |
Ignore the data which are not printed if directly printing the file | ||
function | getIgnoreUselessShapes() | |
function | setIgnoreUselessShapes(value) | |
Indicates whether ignoring useless shapes. | ||
function | getInterruptMonitor() | |
function | setInterruptMonitor(value) | |
Gets and sets the interrupt monitor. | ||
function | isMultiEncoded() | |
function | setMultiEncoded(value) | |
True means that the file contains several encoding. | ||
function | getKeepPrecision() | |
function | setKeepPrecision(value) | |
Indicates whether not parsing a string value if the length is 15. | ||
function | getKeepUnparsedData() | |
function | setKeepUnparsedData(value) | |
Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true. | ||
function | getLanguageCode() | |
function | 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. | ||
function | getLightCellsDataHandler() | |
function | setLightCellsDataHandler(value) | |
The data handler for processing cells data when reading template file. | ||
function | getLoadFilter() | |
function | setLoadFilter(value) | |
The filter to denote how to load data. | ||
function | getLoadFormat() | |
Gets the load format.
The value of the property is LoadFormat integer constant. |
||
function | getLoadStyleStrategy() | |
function | 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. | ||
function | getLocale() | |
function | setLocale(value) | |
Gets and sets the Locale used for workbook at the time the file was loaded. | ||
function | getMaxColumnCount() | |
function | setMaxColumnCount(value) | |
The maximum count of columns to be imported for one sheet. | ||
function | getMaxRowCount() | |
function | setMaxRowCount(value) | |
The maximum count of rows to be imported for one sheet. | ||
function | getMemorySetting() | |
function | setMemorySetting(value) | |
Gets or sets the memory usage options. The value of the property is MemorySetting integer constant. | ||
function | getParsingFormulaOnOpen() | |
function | setParsingFormulaOnOpen(value) | |
Indicates whether parsing the formula when reading the file. | ||
function | getParsingPivotCachedRecords() | |
function | setParsingPivotCachedRecords(value) | |
Indicates whether parsing pivot cached records when loading the file. The default value is false. | ||
function | getPassword() | |
function | setPassword(value) | |
Gets and set the password of the workbook. | ||
function | getPreferredParsers() | |
function | setPreferredParsers(value) | |
Gets and sets preferred value parsers for loading text file. | ||
function | getPreservePaddingSpacesInFormula() | |
function | ||
Indicates whether preserve those spaces and line breaks that are padded between formula tokens while getting and setting formulas. Default value is false. | ||
function | getRegion() | |
function | 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. | ||
function | getSeparator() | |
function | setSeparator(value) | |
Gets and sets character separator of text file. | ||
function | getSeparatorString() | |
function | setSeparatorString(value) | |
Gets and sets a string value as separator. | ||
function | getStandardFont() | |
function | setStandardFont(value) | |
Sets the default standard font name | ||
function | getStandardFontSize() | |
function | setStandardFontSize(value) | |
Sets the default standard font size. | ||
function | getTextQualifier() | |
function | setTextQualifier(value) | |
Specifies the text qualifier for cell values. Default qualifier is '"'. | ||
function | getTreatConsecutiveDelimitersAsOne() | |
function | ||
Whether consecutive delimiters should be treated as one. | ||
function | getTreatQuotePrefixAsValue() | |
function | 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 | ||
---|---|---|
function | setPaperSize(type) | |
Sets the default print paper size from default printer's setting.
|
function TxtLoadOptions()
function TxtLoadOptions(loadFormat)
loadFormat: Number
- A function getSeparator() / function setSeparator(value)
function getSeparatorString() / function setSeparatorString(value)
function isMultiEncoded() / function setMultiEncoded(value)
function getPreferredParsers() / function setPreferredParsers(value)
function hasFormula() / function setHasFormula(value)
function hasTextQualifier() / function setHasTextQualifier(value)
function getTextQualifier() / function setTextQualifier(value)
function getTreatConsecutiveDelimitersAsOne() / function setTreatConsecutiveDelimitersAsOne(value)
function getTreatQuotePrefixAsValue() / function setTreatQuotePrefixAsValue(value)
function getExtendToNextSheet() / function setExtendToNextSheet(value)
function getHeaderRowsCount() / function setHeaderRowsCount(value)
function getHeaderColumnsCount() / function setHeaderColumnsCount(value)
function getMaxRowCount() / function setMaxRowCount(value)
function getMaxColumnCount() / function setMaxColumnCount(value)
function getEncoding() / function setEncoding(value)
function getLoadStyleStrategy() / function setLoadStyleStrategy(value)
function getConvertNumericData() / function setConvertNumericData(value)
function getConvertDateTimeData() / function setConvertDateTimeData(value)
function getKeepPrecision() / function setKeepPrecision(value)
function getLoadFormat()
function getPassword() / function setPassword(value)
function getParsingFormulaOnOpen() / function setParsingFormulaOnOpen(value)
function getParsingPivotCachedRecords() / function setParsingPivotCachedRecords(value)
function getLanguageCode() / function setLanguageCode(value)
function getRegion() / function setRegion(value)
function getLocale() / function setLocale(value)
function getDefaultStyleSettings()
function getStandardFont() / function setStandardFont(value)
function getStandardFontSize() / function setStandardFontSize(value)
function getInterruptMonitor() / function setInterruptMonitor(value)
function getIgnoreNotPrinted() / function setIgnoreNotPrinted(value)
function getCheckDataValid() / function setCheckDataValid(value)
function getCheckExcelRestriction() / function setCheckExcelRestriction(value)
function getKeepUnparsedData() / function setKeepUnparsedData(value)
function getLoadFilter() / function setLoadFilter(value)
function getLightCellsDataHandler() / function setLightCellsDataHandler(value)
function getMemorySetting() / function setMemorySetting(value)
function getAutoFitterOptions() / function setAutoFitterOptions(value)
function getAutoFilter() / function setAutoFilter(value)
function getFontConfigs() / function setFontConfigs(value)
function getIgnoreUselessShapes() / function setIgnoreUselessShapes(value)
function getPreservePaddingSpacesInFormula() / function setPreservePaddingSpacesInFormula(value)
function setPaperSize(type)
type: Number
- A