Jump to content

XML FLOAT VARIABLE NOT PRINT CORRECTLY IN IREPORT


jacobefn

Recommended Posts

Hi,

For some report, I use XML datasource.
Inside this xml datasrouce, I have some float values where decimal separator is a dot.

When I test my report on Ireport, the value printed is correct.
Ex : <TotalPieceOutil>280.0</TotalPieceOutil> is printed  280.00

When I execute my report with my code java my value is printed in the jasperviewer without take care about the dot !!!
So these values are multiplied by ten or hundred, depend how many zero after the dot ;-) !!!
Ex : <TotalPieceOutil>280.0</TotalPieceOutil> is printed  2800.00 !!!

I check my libray to be sure is the same (jasperreports-3.7.0.jar)

I try to force the report_local but no impact !!!

This problem has come since I upgrade to jaspert report 3.7.

an Idea about that, thanks a lot !!!

Etienne

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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