CSV Export Options

When you use the CSV export format, everything in your report is interpreted as a record to be written to the file, so your report should not include any extraneous information such as headers and footers.

If you want the first row of the file to contain field names, add a report header that contains the field names, and include the following option on the command line:

-csvstyle=header

CSV Formatting Options

When you export to CSV, the following additional command-line options are valid:

-csvstyle=option

Determines whether column headings will be exported to the report. Valid values for option are:

crstyle
Crystal Reports settings determine style
noheader
No column headings are exported
header
The first line of the file contains column headings

-csvchar=character

The character used to separate values when exporting to CSV. To use a tab character as the separator, specify "{tab}". Default value: ","

-csvdelimiter=character

The character used to enclose string values when exporting to CSV. To use no delimiter (not recommended), specify "{none}". Default value: double quote (").