Generate OpenOffice calc files using PHP

xzdead picture xzdead · Jan 22, 2014 · Viewed 7.5k times · Source

I have been trying to find a simple way to create OpenOffice calc files with no success.

I have tried:

openTBS - Seems to work writing an xml and a template file but can't find anything about how the xml file format.

Ods php generator - I tried this one as it provides clear examples, but when I copy the files to my server I always get corrupted files

Php doc writer - Tried an example and got an sxw file. I don't even know what that is

ODS-PHP - No documentation, only one example for creating 4 cells

Everything looks old, stalled and undocumented. ¿Any suggestion?

Answer

pernils picture pernils · Jun 26, 2014

I have used opentbs successfully.

You can generate both excel and calc files. It also nice that you can "reuse" your html implementation so to speak.

Maybe this thread could get you going http://www.tinybutstrong.com/forum.php?thr=3069

Do the html version first.. then edit for calc/excel