ktlam1955 Posted June 1, 2009 Share Posted June 1, 2009 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 More sharing options...
bnee_1 Posted May 1, 2014 Share Posted May 1, 2014 To change the delimiters used for CSV exports, these properties can be set in jasperreports.properties: net.sf.jasperreports.export.csv.field.delimiterProperty 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.delimiterProperty 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now