• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Created Excel file is missing something

 
Matthew Busse
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Java geniuses,

I'm using Apache POI to work with excel files. I'm trying to read an excel file (xlsx) and copy it to a new file (also xlsx) with a few rows and extra information added. This new file is then loaded into another web app in development by other people. The new file that is created is not being loaded by the web app, and it seems like the new file is missing something. For one thing, the file size is 8 kb, whereas the file size of the starting file is 53 kb, so I'm guessing when I'm writing the new file, I'm not adding some sort of information that is normally present in excel files. Any ideas?

Here's the code:


 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First step: see if you can open the output of that code in Excel. Then use the eyeball check to see if it contains the right information, comparing it to the spreadsheet you used as the input.
 
Matthew Busse
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Thanks for your response. It turns out the file is fine. My mistake was assuming the other application took a .xlsx file, when it actually only takes .xls.

Thanks anyway!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic