Re: Building multi-page Word docs with PHP?
| From: | Brent Baisley | Date: | Wed, 25 May 2005 16:04:24 +0000 |
| Subject: | Re: Building multi-page Word docs with PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215823@lists.php.net to get a copy of this message | ||
I've only read about being able to generate a Word document if you are running under Windows (which I am not). I gave up long ago trying to figure out the rtf spec to auto generate Word documents. I do exactly what you do, except I generate HTML instead and attach a .doc to the file. The Word document actually ends up being larger than the HTML document, but I don't do all that much formatting.
What you are looking for is something like the opposite of AntiWord, unless AntiWord has a reverse option.
On May 25, 2005, at 8:50 AM, George Pitcher wrote:
Hi, I currently create my multipage docs by saving my word templates as chunks of rtf and then calling them as required as a very long string then outputting them to an rtf file and renaming it as '*.doc'. It works great except for the filesize which comes out at 900k for a two-page document. Opening in Word and saving reduces the file down dramatically, but that would prevent auto-generation and emailing - without human intervention. Does anyone know how to either create multipage docs in Word format to begin with, or to convert (on the fly) rtf to doc, or to save rtf as smaller file? MTIA George -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577