Microsoft word Report generator for PHP
Posted: Fri Mar 27, 2009 8:31 am
Hi yall!
After spending some time searching for a php class, php tool.. or something that would allow me to generate .doc files for reporting... i didn“t find anything. Does anyone know if there is a way of doing this?
Thanks a lot for your help!!
Nevermind, i just found me a way to do it (i saw it in another forum)... it was pretty easy...:
Easy! just this header before before your output (can be HTML formated!)
Thanks for the help!!
After spending some time searching for a php class, php tool.. or something that would allow me to generate .doc files for reporting... i didn“t find anything. Does anyone know if there is a way of doing this?
Thanks a lot for your help!!
Nevermind, i just found me a way to do it (i saw it in another forum)... it was pretty easy...:
Easy! just this header before before your output (can be HTML formated!)
Code: Select all
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
header("Content-type: application/msword");
header('Content-Disposition: attachment; filename="myFileName.doc";');Thanks for the help!!