Jump to content
We've recently updated our Privacy Statement, available here ×

Truncate fields for html, but not for csv or .xlsx


gregg.dale_1

Recommended Posts

We have a field in a report where the text can be potentially very large.  We would like to truncate the text to a reasonably displayable amount in our html version of the report, but would like the entire field value to display when export to .csv, .xls, or .xlsx

Any suggestions on how we might achieve this?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

You can try setting this property in the report itself:

 <property name="net.sf.jasperreports.print.keep.full.text" value="true"/>

You can also set it globally in the jasperreports.properties file under WEB-INFclasses dir. 

net.sf.jasperreports.print.keep.full.text=true

Link to comment
Share on other sites

  • 1 month later...

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...