Generating .doc reports

Reply

Join Date: Jul 2005
Posts: 7
Reputation: om1d_h is an unknown quantity at this point 
Solved Threads: 0
om1d_h om1d_h is offline Offline
Newbie Poster

Generating .doc reports

 
0
  #1
Jul 26th, 2005
We have a linux server and windows clients.
Our webbased accounting system is soppused to make reports in different formats like .DOC.
The system is written in PHP. How can we generate that format?
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 54
Reputation: senexom is an unknown quantity at this point 
Solved Threads: 0
senexom's Avatar
senexom senexom is offline Offline
Junior Poster in Training

Re: Generating .doc reports

 
0
  #2
Jul 26th, 2005
Easy! just this header before before your output (can be HTML formated!)
[PHP]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";');[/PHP]
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC