new TxtSaveOptions()

Creates text file save options.

Methods

constructor_overload$1(format)

Creates text file save options.

Parameter

Name Type Optional Description

format

Number

 

SaveFormat

getAlwaysQuoted()

Indicates whether always adding '"' for each field. If true then all values will be quoted; If false then values will only be quoted when needed(for example, when values contain special characters such as '"' , '\n' or separator character). Default is false. NOTE: This member is now obsolete. Instead, please use QuoteType property instead. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced.

getCachedFileFolder()

The cached file folder is used to store some large data.

getClearData()

Make the workbook empty after saving the file.

getCreateDirectory()

If true and the directory does not exist, the directory will be automatically created before saving the file. The default value is false.

getEnableHTTPCompression()

Indicates if http compression is to be used in user's IIS. Please specify this property to true if http compression is used.

getEncoding()

Gets and sets the default encoding.

getExportAllSheets()

Indicates whether exporting all sheets to the text file. If it is false, only export the activesheet, just like MS Excel. The defult value is false.

getExportArea()

The range of cells to be exported. If the exported area has been specified, TrimLeadingBlankRowAndColumn will takes no effect.

getExportQuotePrefix()

Indicates whether the single quote sign should be exported as part of the value of one cell when Style.QuotePrefix is true for it. Default is false.

getFormatStrategy()

Gets and sets the format strategy when exporting the cell value as string. The value of the property is CellValueFormatStrategy integer constant.

getKeepSeparatorsForBlankRow()

Indicates whether separators should be output for blank row. Default value is false so by default the content for blank row will be empty.

getLightCellsDataProvider()

The Data provider to provide cells data for saving workbook in light mode.

getMergeAreas()

Indicates whether merge the areas of conditional formatting and validation before saving the file. The default value is false.

getPdfExportImagesFolder()

The physical folder where images will be saved when exporting a workbook to Aspose.Pdf XML format. Default is an empty string.

getQuoteType()

Gets or sets how to quote values in the exported text file. The value of the property is TxtValueQuoteType integer constant.

getRefreshChartCache()

Indicates whether refreshing chart cache data

getSaveFormat()

Gets the save file format. The value of the property is SaveFormat integer constant.

getSeparator()

Gets and sets char Delimiter of text file.

getSeparatorString()

Gets and sets the a string value as separator.

getSortExternalNames()

Indicates whether sorting external defined names before saving file.

getSortNames()

Indicates whether sorting defined names before saving file.

getTrimLeadingBlankRowAndColumn()

Indicates whether leading blank rows and columns should be trimmed like what ms excel does. Default is true. When saving with LightCells mode, this option takes no effect. User should control the output range by the implementation of LightCellsDataProvider or by speicifing ExportArea

getUpdateSmartArt()

Indicates whether updating smart art setting. The default value is false. Only effects after calling Shape.GetResultOfSmartArt() method and the cached shapes exist in the template file.

getValidateMergedAreas()

Indicates whether validate merged cells before saving the file. The default value is false.

setAlwaysQuoted()

Indicates whether always adding '"' for each field. If true then all values will be quoted; If false then values will only be quoted when needed(for example, when values contain special characters such as '"' , '\n' or separator character). Default is false. NOTE: This member is now obsolete. Instead, please use QuoteType property instead. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced.

setCachedFileFolder()

The cached file folder is used to store some large data.

setClearData()

Make the workbook empty after saving the file.

setCreateDirectory()

If true and the directory does not exist, the directory will be automatically created before saving the file. The default value is false.

setEnableHTTPCompression()

Indicates if http compression is to be used in user's IIS. Please specify this property to true if http compression is used.

setEncoding()

Gets and sets the default encoding.

setExportAllSheets()

Indicates whether exporting all sheets to the text file. If it is false, only export the activesheet, just like MS Excel. The defult value is false.

setExportArea()

The range of cells to be exported. If the exported area has been specified, TrimLeadingBlankRowAndColumn will takes no effect.

setExportQuotePrefix()

Indicates whether the single quote sign should be exported as part of the value of one cell when Style.QuotePrefix is true for it. Default is false.

setFormatStrategy()

Gets and sets the format strategy when exporting the cell value as string. The value of the property is CellValueFormatStrategy integer constant.

setKeepSeparatorsForBlankRow()

Indicates whether separators should be output for blank row. Default value is false so by default the content for blank row will be empty.

setLightCellsDataProvider()

The Data provider to provide cells data for saving workbook in light mode.

setMergeAreas()

Indicates whether merge the areas of conditional formatting and validation before saving the file. The default value is false.

setPdfExportImagesFolder()

The physical folder where images will be saved when exporting a workbook to Aspose.Pdf XML format. Default is an empty string.

setQuoteType()

Gets or sets how to quote values in the exported text file. The value of the property is TxtValueQuoteType integer constant.

setRefreshChartCache()

Indicates whether refreshing chart cache data

setSeparator()

Gets and sets char Delimiter of text file.

setSeparatorString()

Gets and sets the a string value as separator.

setSortExternalNames()

Indicates whether sorting external defined names before saving file.

setSortNames()

Indicates whether sorting defined names before saving file.

setTrimLeadingBlankRowAndColumn()

Indicates whether leading blank rows and columns should be trimmed like what ms excel does. Default is true. When saving with LightCells mode, this option takes no effect. User should control the output range by the implementation of LightCellsDataProvider or by speicifing ExportArea

setUpdateSmartArt()

Indicates whether updating smart art setting. The default value is false. Only effects after calling Shape.GetResultOfSmartArt() method and the cached shapes exist in the template file.

setValidateMergedAreas()

Indicates whether validate merged cells before saving the file. The default value is false.