Re: Dynamic Document Creation

From: Date: Fri, 07 Dec 2001 18:06:19 +0000
Subject: Re: Dynamic Document Creation
Groups: php.general 
Request: Send a blank email to php-general+get-77064@lists.php.net to get a copy of this message
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 ]" <rswfire@hotmail.com> > To: <php-general@lists.php.net> > 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: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list- admin@lists.php.net > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list- admin@lists.php.net > > >

« previous php.general (#77064) next »