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

The following additional options can be used for CSV exports:

Option Description
-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 columns 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, specify "{none}". Default value: double quote (").

Related Concepts

Export Formats and Options

Related Topics

CSV Export Options (Command Line Builder)

CSV Export Settings (Project Editor)