aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Created Excel file is missing something 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 "Created Excel file is missing something" Watch "Created Excel file is missing something" New topic
Author

Created Excel file is missing something

Matthew Busse
Ranch Hand

Joined: Sep 29, 2010
Posts: 52
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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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

Joined: Sep 29, 2010
Posts: 52
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!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Created Excel file is missing something