Jump to content

Delimiters in CSV output from IReport


ktlam1955

Recommended Posts

I am writing a report that generates a CSV file in iReport.  Can someone tell me how to change the delimiter from a comma to something else like a semicolon for example?  I can't seem to find out where I can do this in iReport.  The default delimiter seems to be a comma but my user needs a CSV file delimited by semicolons.  Any help is appreciated.  Thanks in advance.

 

 

Link to comment
Share on other sites

  • 4 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

To change the delimiters used for CSV exports, these properties can be set in jasperreports.properties:

 

net.sf.jasperreports.export.csv.field.delimiter
Property that contains the character or sequence of characters used to delimit two fields on the same record. Its value is used as default for the getFieldDelimiter() CSV export configuration setting.
 
 
net.sf.jasperreports.export.csv.record.delimiter
Property that contains the character or sequence of characters used to delimit two records. 
Its value is used as default for the getRecordDelimiter() CSV export configuration setting.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...