use OpenOffice Calc to open Excel files and convert to CSV or Tab-delimited

1.4k Views Asked by At

Is there any type of automation available where I can use OpenOffice Calc to open Excel files and convert them to CSV or tab-delimited files?

I'm currently using PHPExcel to open the files and iterate through them and import each row into a database but have begun to run into memory issues with large files and need another alternative.

These are xls and xlsx files so it has to work for all of them.

If there is, how would I go about programming this in PHP? If you have other alternatives, please feel free to suggest them.

1

There are 1 best solutions below

3
On BEST ANSWER

OpenOffice can be run in server mode and used to convert files between a number of supported formats.

I have used this mainly with Java thru the JODConverter library available at http://www.artofsolving.com/opensource/jodconverter

A quick websearch brought up http://sourceforge.net/projects/phopo-org/ which claims to be a PHP implementation