File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Help- how POI convert number cell to text? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Help- how POI convert number cell to text?" Watch "Help- how POI convert number cell to text?" New topic
Author

Help- how POI convert number cell to text?

Sawyer Shillong
Greenhorn

Joined: Nov 07, 2001
Posts: 9
I encouter one very interesting problem in our probject. Out system will read xls file and parse with POI then insert into system. One column in the xls has been set as "Text". But the values in some cells still be stored as *NUMBER*. The poi returns HSSFCell with numberic type when parsing. Then the value inserted into system may be the value with science nonation.

For example, the value in xls is 0.0000000005.
The POI will return 5E-10 and insert into system.

It seems one MS-Excel issue. Some cells right text format, but some with number format

This is very urgent for our project, please advise. Thanks again.
 
 
subject: Help- how POI convert number cell to text?
 
Threads others viewed
JSF database to excel
rendering JSP in XLS format
display leading zeros in excel from servlet
Converting xls to xlsx and XmlValueDisconnectedException on WebLogic 9.2 (poi 3.7)
Text file xls to Binary format xls in Java.
IntelliJ Java IDE