[PHP] Dynamic Document Creation
Hello, Does anyone have any scripts or know a location to point me to where I can dynamically create Microsoft Word documents using PHP. I need to create some nicely formatted forms. I could do this as text, however, this solution is not perfect because I don't know of an escape sequence for creating a new page. I cannot do this using PDF because it's not installed on the servers I am using. I could possibly do this in other formats if you know of any solutions. Thank you. rswfire _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Dynamic Document Creation
It's from manual do not remember it's chapter exactly: // starting word $word = new COM(word.application) or die(Unable to instanciate Word); print Loaded Word, version {$word-Version}\n; //bring it to front $word-Visible = 1; //open an empty document $word-Documents-Add(); //do some weird stuff $word-Selection-TypeText(This is a test...); $word-Documents[1]-SaveAs(Useless test.doc); //closing word $word-Quit(); //free the object $word-Release(); $word = null; //-- - So you can develop this example into powerful tool for generating Word %( Documents. I advise you to find MS Word DOM Handbook to make your task easier... Zliy Pes, http://zliypes.com.ua - Original Message - From: [ rswfire ] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 07, 2001 7:43 PM Subject: [PHP] Dynamic Document Creation Hello, Does anyone have any scripts or know a location to point me to where I can dynamically create Microsoft Word documents using PHP. I need to create some nicely formatted forms. I could do this as text, however, this solution is not perfect because I don't know of an escape sequence for creating a new page. I cannot do this using PDF because it's not installed on the servers I am using. I could possibly do this in other formats if you know of any solutions. Thank you. rswfire _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Dynamic Document Creation
On Friday 07 December 2001 09:43 am, you wrote: Does anyone have any scripts or know a location to point me to where I can dynamically create Microsoft Word documents using PHP. You said you wanted to create some nicely formatted forms -- what's wrong with HTML and style sheets? Assuming you have some control over your end users' browsers, you should be able to create a well-formatted, easy-to-use HTML form no problem. Otherwise, I'd look at LaTeX or maybe DocBook format. --kurt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Dynamic Document Creation
These forms are for offline distributionthe information in the form is collected from an online database... On Friday 07 December 2001 09:43 am, you wrote: Does anyone have any scripts or know a location to point me to where I can dynamically create Microsoft Word documents using PHP. You said you wanted to create some nicely formatted forms -- what's wrong with HTML and style sheets? Assuming you have some control over your end users' browsers, you should be able to create a well-formatted, easy- to-use HTML form no problem. Otherwise, I'd look at LaTeX or maybe DocBook format. --kurt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: php-list- [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Dynamic Document Creation
Wheee! Sounds like fun. If you're headed for the latest version of Word (XP), XML would be the way to go. I would expect specs available at either StarOffice (Open Office) or MSFT. There's also nice formatting with HTML. Miles Thompson At 12:43 PM 12/7/2001 -0500, [ rswfire ] wrote: Hello, Does anyone have any scripts or know a location to point me to where I can dynamically create Microsoft Word documents using PHP. I need to create some nicely formatted forms. I could do this as text, however, this solution is not perfect because I don't know of an escape sequence for creating a new page. I cannot do this using PDF because it's not installed on the servers I am using. I could possibly do this in other formats if you know of any solutions. Thank you. rswfire _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Dynamic Document Creation
Thank you, Valentin. Your solution sounds like the one I am looking for! It's from manual do not remember it's chapter exactly: // starting word $word = new COM(word.application) or die(Unable to instanciate Word); print Loaded Word, version {$word-Version}\n; //bring it to front $word-Visible = 1; //open an empty document $word-Documents-Add(); //do some weird stuff $word-Selection-TypeText(This is a test...); $word-Documents[1]-SaveAs(Useless test.doc); //closing word $word-Quit(); //free the object $word-Release(); $word = null; // -- - So you can develop this example into powerful tool for generating Word %( Documents. I advise you to find MS Word DOM Handbook to make your task easier... Zliy Pes, http://zliypes.com.ua - Original Message - From: [ rswfire ] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 07, 2001 7:43 PM Subject: [PHP] Dynamic Document Creation Hello, Does anyone have any scripts or know a location to point me to where I can dynamically create Microsoft Word documents using PHP. I need to create some nicely formatted forms. I could do this as text, however, this solution is not perfect because I don't know of an escape sequence for creating a new page. I cannot do this using PDF because it's not installed on the servers I am using. I could possibly do this in other formats if you know of any solutions. Thank you. rswfire _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: php-list- [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: php-list- [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]