Re: Generating word documents based on fields in a browser

From: Date: Wed, 10 Jul 2002 15:23:41 +0000
Subject: Re: Generating word documents based on fields in a browser
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-106836@lists.php.net to get a copy of this message
On Wed, 10 Jul 2002 16:13:53 +0100, you wrote: >"David Otton" <david.otton@overnetdata.com> wrote in message >news:s9joiucootj7g0lud1jift7hc3iqmpbovp@4ax.com... >> On Wed, 10 Jul 2002 15:53:36 +0100, you wrote: >> >I want to create a form, similar to an invoicing system that generates a >> >word document that the user can print out >> You may have better luck with RTF >> (http://www.phpbuilder.com/columns/nair20020523.php3) [hint: Word can read RTF files] >> (but what can the Word format do that HTML can't? Why can't they print >> out an HTML invoice?) >I know that php can open files. >What I was wondering is if it can :- >Start Word >Open a Word template >Generate fields in the template based on hidden fields and generate the page Yeuch. Maybe. Ask a Word expert if it's possible to manipulate it in that way. But you're better off modifying the file yourself in PHP, not asking Word to do it for you. But again, /why/? What benefit does this get you that's not offered by regular HTML?

« previous php.general (#106836) next »