Jump to content
JasperReports Library 7.0 is now available ×

Recommended Posts

By: Arun Kumar PG - pgarunkumar

VERY URGENT !

2003-10-20 04:55

 

Hi all!

 

I am supposed to solve this problem as soon as possible.Although it's simple but i need help.

 

Actually, I have one column in a Database table of type Decimal( I am using MySQL).Now I want to print this field in the PDF document.I accept the value in a field of type Double but the value is being shown in exponential form like 9.9E+10 etc

 

 

Can anyone tell me how can get the normal decimal value in the report.

A snippet of code in the method getFieldValue() of my JRDataSource extended class is:

 

Object getFieldValue(){

Object value=new Double(resultset.getDouble("DOUBLE_COLUMN_NAME"));

 

return value;

 

}

 

 

 

Immediate help to this issue will be highly appreciated.

 

Thanks in advance

Arun

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