Jump to content
Changes to the Jaspersoft community edition download ×

Excel Problem => string fields with leading 0


Recommended Posts

By: str - gravemoon

Excel Problem => string fields with leading 0

2006-05-12 07:32

One excel export contains some strings, numbers and one field for a telephone number.

 

the content of this field sometimes starts with a leading 0

 

ie. 014392403982

 

When I let Jasper try to find the correct data type it seems to convert the data to a Double and if this is possible it assumes a numeric value.

If an exception occures the field is displayed as a string.

 

This behaviour is normally ok but the conversion to a Double value removes my leading zero :(

 

When I turn off the auto detect cell type option I encounter the problem that excel displays the content of numeric fields with a special token (is a number but stored in an text field....).

 

And now I already can see the unhappy users when they will test the new report....

 

In the .jrxml are all correct datatypes set(java.lang.String, java.lang.Double,....).

 

Is it possible to use this information or change the cell type detection in some way?

 

(An additional visible character in front of the telephone number is no usable solution)

 

Using: Jasper 1.2.0

 

thx for help

Link to comment
Share on other sites

  • 2 months later...
  • Replies 2
  • 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...