how to generate ms-word files
| From: | michael | Date: | Thu, 14 Nov 2002 12:34:28 +0000 |
| Subject: | how to generate ms-word files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-124420@lists.php.net to get a copy of this message | ||
hello
I'm trying to generate ms-word files with php. Until now, I can create a
document and even insert page-breaks. Is there any tutorials going further
(boxes, mergedocuments etc...)?
this is my code so far:
<?php
header ('Content-type: application/msword ');
header ('Content-Description: PHP Generated Data');
header ('Content-Disposition: inline; filename="test.doc"');
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Text before PagBreak
<br clear=all style='page-break-before:always'>
Text after PagBreak</body>
</html>
Thank you for any help.
michael