SaveCsvFile

<< Click to Display Table of Contents >>

Manual > Control Reference > Basics > Grid control > Methods >

SaveCsvFile


 

Writes grid data to a CSV file.

 


syntax

SaveCsvFile(

         fileName

         [,bColHeader = FALSE]

         [,bRowHeader = FALSE]

         [,bDoubleQuatation = FALSE]

         [,separator = ","]

         [,bDisplayData = FALSE]

         )

 


Parameters

 

fileName


Type:

character


File name. If [ansi] is specified, it will be saved in ANSI format. If omitted, it will be saved in utf8 (with BOM).

 

bColHeader


Type:

Boolean


TRUE - Include the column headers in the CSV file.

 

bRowHeader


Type:

Boolean


TRUE - Include row-oriented headers in the CSV file.

 

bDoubleQuatation


Type:

Boolean


TRUE - Write each piece of data enclosed in double quotes.

FALSE - Enclose data in double quotes only when necessary, i.e. when the data contains a comma ",".

 

separator


Type:

character


Delimiter. (Cannot be more than one character.)

 

bDisplayData


Type:

Boolean


TRUE - Grid's Display Data is saved to CSV.

FALSE - The grid's source data is saved to CSV even when filters or paging are displayed.

 

Return Value



Type:

Boolean


FALSE - Failure. TRUE - Success.

 


hmtoggle_plus1Explanation

 


reference