Microsoft word Report generator for PHP

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
molerus
Forum Newbie
Posts: 1
Joined: Fri Mar 27, 2009 8:28 am

Microsoft word Report generator for PHP

Post by molerus »

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!)

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!!
Post Reply