Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

POI: Cant read null values

 
Denise Advincula
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Of course, I found a very beautiful couch. Definitely. And this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!