File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes POI: Cant read null values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "POI: Cant read null values" Watch "POI: Cant read null values" New topic

POI: Cant read null values

Denise Advincula
Ranch Hand

Joined: Jan 01, 2007
Posts: 163
Hello, I hope you can help me with this problem. I need to read an excel file and transfer the contents to a csv file, including the null values. It seems that my program couldnt read the null values because, it skips it and prints the next value in the csv file, hence my csv file would always look like this:


instead of this:


I hope you can help me. thank you!

SCJP/OCPJP 6 | SCWCD/OCPJWCD 5 | OCMJEA in progress...
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
What do you mean by "null value" in an XLS file - an empty cell? That would mean the code outputs some number ("2" in this case) where the cell was empty. That sounds more like a flaw in the application logic than a POI problem, but somehow I think I'm misunderstanding what's going on. Maybe you can provide some more detail.
I agree. Here's the link:
subject: POI: Cant read null values
It's not a secret anymore!