Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to add number to excel sheet work book cell?

807580Jul 15 2010 — edited Jul 19 2010
I am trying to create an excel sheet dynamically. I am able to create and populate the data as well.
But in one of the cell I have to add 1.0 value. Since I have added this as a new Label(...), after opening the excel sheet I can see an icon in the cell with message as "Number in this cell is formed as a text".

SO I have changed Label to Number while adding to cell.
I am using the format as "#.#". Othen than 1.0 everything I can see in the cell as x.y format. Like 1.2, 5.7 etc...
But for 1.0 I can see as "1." only.

Is there any way to write 1.0 to cell as a number.

I am using jxl.jar for excel.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 16 2010
Added on Jul 15 2010
9 comments
583 views