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]