NativeExcel suite v1.x

SaveAsCSV method

Saves worksheet as CSV file. Returns 1 if it succeeds.

Remarks

This method is deprecated. Use IXLSWorksheet.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 the worksheet one as sheet.csv
Workbook.Sheets[1].SaveAsCSV('sheet.csv');
Copyright © NikaSoft 2004-2010