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

How can I format a cell with a String as excel Text?


tsukebumi

Recommended Posts

I have a report with a field filled with a java.lang.String value. This report generates an excel file and I need to format it as text.

Currently using iReport 3.7.6 to generate de jrxml and jasper files and jasper 4.6.0 with a web application.

 

I tried setting pattern format for rhe cell in the jasper report to @, but I guess it is not valid.

On other 'numeric' fields with a given pattern I was able to use JRXlsAbstractExporterParameter.FORMAT_PATTERNS_MAP to give it a text format in excel with a map mapping the format '#,##0' to '@', but I have not been able to apply this way with the String field

How can I do it?

Could I do it with a newer jasper version ?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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