FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
SaveAsTextDelim Function

Saves the Active sheet of an Excel file as a text delimited file.

Pascal
procedure SaveAsTextDelim(const OutStream: TStream; const Workbook: TExcelFile; const Delim: UTF16Char; const Encoding: TEncoding); overload;
C++
SaveAsTextDelim(const TStream OutStream, const TExcelFile Workbook, const UTF16Char Delim, const TEncoding Encoding);
Parameters 
Description 
const OutStream: TStream 
Stream where we are going to save the file. 
const Workbook: TExcelFile 
Workbook we want to save. 
const Delim: UTF16Char 
Delimiter used in the file ("," or ";" for csv, #9 for tab delimited) 
const Encoding: TEncoding 
Encoding for the saved file. 

You will normally want to use TFlexCelImport.SaveAsText instead of this method to save whole files, or SaveRangeAsTextDelim to save a range of the active sheet. 

 

This method only works in Delphi 2009 or newer.  

Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!