FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
SaveRangeAsTextDelim Function

Saves a range of cells in a text delimited file.

Pascal
procedure SaveRangeAsTextDelim(const OutStream: TStream; const Workbook: TExcelFile; const Delim: UTF16Char; const Range: TXlsCellRange; const Encoding: TEncoding); overload;
C++
SaveRangeAsTextDelim(const TStream OutStream, const TExcelFile Workbook, const UTF16Char Delim, const TXlsCellRange Range, 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 Range: TXlsCellRange 
Range of cells we want to export. 
const Encoding: TEncoding 
Encoding for the generated file. 

To save the full sheet use SaveAsTextDelim or TFlexCelImport.SaveAsText

 

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!