brianscottnole
New Member
- Joined
- Nov 6, 2009
- Messages
- 4
Hello friends -
I've got a third party vendor application that creates spreadsheets really quite nicely. I've got a need to take some of those sheets, read them electronically, and spit the results back out somewhere else. I've successfully used the Apache POI APIs for this purpose in the past.
However, the spreadsheets that are created by the vendor application cause the POI component to fail when they try to open the workbook with a "DimensionsRecord was not found" error.
The tricky part is that if I manually open the spreadsheet, then save it without making any changes, my POI process has no problems and can read the file fine. I also notice that when I open the spreadsheet, then save it, it losses about half its size on the disk.
So, the entire undertaking is about making it so folks don't have to go and open a spreadsheet. A command line solution to open excel with a particular file doesn't seem to difficult, but what I really need to do is command line to open the file, then save it again, (hopefully) causing the mysterious conversion to take place that allows my automated process to manipulate the spreadsheet.
Any insight is appreciated.
- brian
I've got a third party vendor application that creates spreadsheets really quite nicely. I've got a need to take some of those sheets, read them electronically, and spit the results back out somewhere else. I've successfully used the Apache POI APIs for this purpose in the past.
However, the spreadsheets that are created by the vendor application cause the POI component to fail when they try to open the workbook with a "DimensionsRecord was not found" error.
The tricky part is that if I manually open the spreadsheet, then save it without making any changes, my POI process has no problems and can read the file fine. I also notice that when I open the spreadsheet, then save it, it losses about half its size on the disk.
So, the entire undertaking is about making it so folks don't have to go and open a spreadsheet. A command line solution to open excel with a particular file doesn't seem to difficult, but what I really need to do is command line to open the file, then save it again, (hopefully) causing the mysterious conversion to take place that allows my automated process to manipulate the spreadsheet.
Any insight is appreciated.
- brian