Jump to content

Jasper export to Excel


k1234

Recommended Posts

To create the report xml file we are using iReport tool.

But we are facing problem while exporting report to Excel format.We are getting one field in exponential format. We tried using TO_CHAR in SQL query, but not able to resolve problem.

 

For eg. we have SQL query as follows :

 

select column1 from xyz

 

column1 is containing values in format 11581000029014400

 

but when report is exported to excel, value in cell is shown in exponential format.(Formula bar in excel show 11581000029014400 ).

 

 

 

Kindly provide a solution to remove exponential format, and show value in proper number format in excel report

 

 

 

Thanks in advance,

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Thank you for the response.

 

We have set the Expression class to java.lang.String

 

Its a data base column of type varchar(its a numeric value - Varchar data type in DB) .

 

We have taken String in report for this field, When we export to excel,,its getting converted in to a number and shows in exponential format..

 

Kindly give some inputs..

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