RE: write to word..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I did it like this
<?php
//create file here


//then output it

             header ("Content-type: application/msword");
             header ("Content-Disposition: attachment;
filename=letter.doc");
             include('letter.htm');

print('done it')
?>

I wrote the letter to file and then included it, but you can probably just
print HTML as you would normally. Word will open HTML files and maintain the
format.

HTH

Peter





-----Original Message-----
From: Chris Mach [mailto:cjmach@gto.net]
Sent: 23 July 2003 03:01
To: php-db@lists.php.net
Subject:  write to word..


hi,

I'm just wondering if it is possible to write to a word document or any
other file type that would allow for easy editing(besides txt) with out
having to copy and past everything in? I'm looking to have a template
perhaps in word and have the code insert variables from the database.

If it is possible, could some one point me in the right direction. Like
where to look in the manual.

Thanks,
Chris





--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux