note 23126 added to faq.com
| From: | ag at webagentur-grips dot de | Date: | Wed, 10 Jul 2002 11:38:32 +0000 |
| Subject: | note 23126 added to faq.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32829@lists.php.net to get a copy of this message | ||
How can i format the resultstring ($text) which comes from a mysql-query?
---- start code -----
$word = new COM("word.application") or die("Can't start Word!");
$word->Visible = 1;
$word->Documents->Add();
$word->Selection->Font->Name("Verdana"); // doesn't work prints it in
Times
$word->Selection->Font->Bold(); // doesn't work :-(
$word->Selection->TypeText($text);
$word->Documents[1]->SaveAs($fullpath);
$word->Quit();
$word = null;
....
---- end code ---
Everything else is working fine
thanx
Achim Grothkopp
mailto:ag@webagentur-grips.de
--
http://www.php.net/manual/en/faq.com.php
http://master.php.net/manage/user-notes.php?action=edit+23126
http://master.php.net/manage/user-notes.php?action=delete+23126
http://master.php.net/manage/user-notes.php?action=reject+23126