Link Search Menu Expand Document

SSpread.ExportToTextFileU Method

Explanation Export the spreadsheet to a Unicode text file using your own specified delimiter.

It has the same function as the ExportToTextFile method, but the output result is a Unicode text file.

Use the ExportRangeToTextFileU method to export a specific cell range.
Call format ExportToTextFileU(Writer, celldelim, coldelim, rowdelim, flags)
Return value None
Arguments Writer Export destination Writer Object
celldelim Character string representing the cell delimiter
coldelim A string representing the column delimiter
rowdelim A string representing the line delimiter
flags Method to create a file
Specify a combination of the following values.
Constant Value Description
$ExportToTextFileUnformattedData 4 Export as unformatted data
$ExportToTextFileColHeaders 8 Export column header string
$ExportToTextFileRowHeaders 16 Export line header string
$ExportToTextFileAllHeaders 24 Export all header strings
$ExportToTextFileCheckBoxFalse 32 Checkbox type cells that are not checked output 0
Exception EXT-25 No valid Writer object specified
EXT-28 An error occurred in the ExportToTextFileU method
Example of use
    var fs = new FileSystem();
    var f = fs.SaveDialog("Save", "Text File(*.txt)=*.txt", "txt", "");
    ExportToTextFileU(f, "", ",", "", $ExportToTextFileAllHeaders);
    f.Close();
    
Related item ExportRangeToTextFileU, ExportToTextFile, LoadTextFile method