note 23127 deleted from faq.com by phanto

From: Date: Tue, 06 Aug 2002 00:10:45 +0000
Subject: note 23127 deleted from faq.com by phanto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34359@lists.php.net to get a copy of this message
Hallo Zusammen, kann mir jemand weiterhelfen, wie ich den aus einer mySQL-DB mittels PHP/COM eingefügten Text ($text) eines Worddocs formatieren kann? Folgender Code funzt nicht (bei Auszeichnen): ---- start code ----- ... //die query und das Variablenfüllen spare ich mir mal ;-) $word = new COM("word.application") or die("Can't start Word!"); $word->Visible = 1; $word->Documents->Add(); $word->Selection->Font->Name("Verdana"); // es kommt immer nur Times $word->Selection->Font->Bold(); // nix fett :-( $word->Selection->TypeText($text); $word->Documents[1]->SaveAs($fullpath); $word->Quit(); $word->Release(); $word = null; .... ---- end code --- ansonsten klappt alles gut. Merci im voraus! Gruss Achim Grothkopp mailto:ag@webagentur-grips.de

« previous php.notes (#34359) next »