Jump to content
JasperReports Library 7.0 is now available ×

Decimal value issue during exporting excel and setting IS_DETECT_CELL_TYPE to true


jitesh_0149

Recommended Posts

 

I'm getting issue regarding decimal values when report exported to excel using jasper report 4.6.
Following is the paramaeter which I set during exporting report to excel.
 
                JExcelApiExporter exporterXLS = new JExcelApiExporter();                
                exporterXLS.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE);
 
From the query itself value is fixed to 2 decimal point.
Reports output displays correct value but when tried to work with the cell it shows difference in values. 
 
Following screenshot shows the difference,
 
2(22).png.16473aa38f4f418bdcd7e5eb2a5d3136.png
 
 
This issue happens when contains some value other than zero after decimal point. i.e. works correctly with 15.00 but not 15.33.
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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