|
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.
|
Explanation
Writes grid data to a CSV file. This function cannot be used unless you have logged in to the server.
If you specify [ansi] at the beginning of the file name specified in the fileName argument, it will be saved in ANSI format. If you omit it, it will be saved in utf8 (with BOM).
Example) [ansi]c:\work\log.txt
You can save the grid's display data by specifying TRUE for bDisplayData. If you omit this parameter or specify FALSE, the grid's source data will be saved.
|
reference
Copy
Paste
Cut
Print
LoadCsvFile
SaveCsvFile
|