• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

POI HSSF - Excel question

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an XML file generated from a PeopleSoft SQR that has a file extension of .xls. The file isn't truly a Microsoft .xls file and it can get very large depending on the amount of data in the spreadsheet. I wanted to know if it would be possible using the POI HSSF to read this XML based .xls file and resave it as a .xls file. I have tried doing this in Excel by opening my source file and resaving it. It dramatically decreases the file size. I didn't know if anyone was familiar with working with XML based Excel files.

My thinking is I could create a small Java application that would take the name of the file as an argument and simply open the file and resave it with the same file name. This would save it as a Microsoft .xls file, decrease the file size and make the end users a bit happier. Thanks.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
POI handles XLS files (as well as DOC, PPT and some others), but not XML files. Whatever Excel can do with it, POI can't.
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic