aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "POI: Cant read null values" Watch "POI: Cant read null values" New topic
Author

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:

1,2,3,4

instead of this:

1,,3,4

I hope you can help me. thank you!


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

Joined: Mar 22, 2005
Posts: 42906
    
  69
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: http://aspose.com/file-tools
 
subject: POI: Cant read null values