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

Excel Format Mapping


supunthri

Recommended Posts

 HI,

I have an JasperReport running on JasperServer 3.7 which has a percentage column with the following numeric pattern applied 

"#,##0.00 %"

But when you export the report to excel what I get is a value like below,

for example, for the value 25.0% shown on jasperserver what I see on the excel export is,

"0.25"

I saw that an entry should be put inside the formatPatternsMap bean bu I have no idea what values should be put in order to get this working

Can someone help me configuring this?

THanks a lot in advance!!

Supun.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

 Hi,

I figured out what was wrong, I had to make the "detectCellType" property of "xlsExportParameters" bean to false in order for my formatPatternsMap s to work. 

THis is the entry I have put as a mapping,

 

    <util:map id="formatPatternsMap">

        <!-- entry key="¤ #,##0.00" value="$ #,##0.00"/-->

<entry key="#,##0.0 %" value="0.00%"/>

    </util:map> 

 

Cheers!

Supun

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