Answer the question
In order to leave comments, you need to log in
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
You can try to use openoffice and convert through the console. This is the easiest way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question