A
A
appy2012-08-15 19:49:57
PHP
appy, 2012-08-15 19:49:57

Best way to export to Word and Excel from PHP?

The web application provides the output of some generated table in doc and xls.

Currently, PEAR Spreadsheet_Excel_Writer is used to generate xls, while doc is simply passed an html table with the headers "Content-type: application/ms-word" and "Content-Disposition: attachment; filename=file.doc"

Are there better solutions? I would like to keep compatibility with office 2003.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2012-08-15
Protko @Fesor

You can try to use openoffice and convert through the console. This is the easiest way.

L
lubezniy, 2012-08-15
@lubezniy

For Excel, there is PHPExcel, but it eats a lot of RAM.

D
drfaustxx, 2012-08-16
@drfaustxx

jodconverter + openoffice

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question