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

POI: Cant read null values

Denise Advincula
Ranch Hand

Joined: Jan 01, 2007
Posts: 160
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: 41096
    
  44
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.


Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: POI: Cant read null values
 
Similar Threads
using JFileChooser
how to read the .csv file
Tabular Data
CSV file help
Problem in csv file upload