NativeExcel suite v1.x

SaveAsCSV method

Saves the range values as CSV file format. Returns 1 if it succeeds.

Remarks

This method is deprecated. Use IXLSRange.SaveAs method.

Syntax

function SaveAsCSV(FileName: WideString): integer;
FileNameWideString. A string that indicates the name of the file to be saved. You can include a full path; if you don't, component saves the file in the current folder.

Example

This example saves cells A1:F100 on sheet one as expdata.csv
Workbook.Sheets[1].Range['A1', 'F100'].SaveAsCSV('expdata.csv');
This example saves the entire worksheet as sheet.csv
Workbook.Sheets[1].UsedRange.SaveAsCSV('sheet.csv');
Copyright © NikaSoft 2004-2007