Spread 8.0 Documentation
DLL
Support Options

Glossary Item Box

DLL


To save a portion of the sheet to a delimited file

Call the SSExportRangeToTextFile function to export an ANSI text file or the SSExportRangeToTextFileU function to export a Unicode text file, and set the parameters as follows:

  1. If you have multiple sheets, set SSSetSheet first.
  2. Set the lCol, lRow, lCol2, and lRow2 parameters to specify the cell, row, column, or block of cells.
    Using Column and Row Properties explains valid values for the lCol, lRow, lCol2, and lRow2 parameters.
  3. Set the pcszFileName parameter to a valid path and file name.
    If you do not specify an extension, Spread will add .TXT.
  4. Set the pcszCellDelim, pcszColDelim, and pcszRowDelim parameters to the text to use as the cell, column, and row delimiters, respectively.
    For more information about working with delimiters in text files, see the SSExportRangeToTextFile function or the SSExportRangeToTextFileU function.
  5. Set the lFlags parameter to specify whether to overwrite or append formatted or unformatted data, and whether to export column headers, row headers, or both.
  6. Set the pcszLogFile parameter to the path and file name of the log file you want the control to create.
    If you do not want to generate a log file, set the pcszLogFile parameter to "".
© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.