Re: Re: Word COM Object
| From: | jon | Date: | Thu, 06 Jan 2005 23:12:03 +0000 |
| Subject: | Re: Re: Word COM Object | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25252@lists.php.net to get a copy of this message | ||
Generally, I'll build the document in word, put ||TEXT|| (or something similar) wherever I need to replace text, then save the document as an rtf.
From there, I just grab the doc, search and replace all my ||TEXT|| areas, and write the file back out, but with a .doc extension. Word will open it right up, just like it was a native word doc.
Theoretically, it's possible to do the same thing with saving an .html doc as .doc, but your mileage may vary.
-- jon
michael wrote:
You could try to generate RTF commands, not sure if that will work though. There should be loads of websites that give you the relevant commands. Rgds, Michael Dirc writes:-- jon roig web developer phone: 888.230.7557 email: jon@trafficdesigns.comMight be better to post this on one of the microsoft newsgroups as news.microsoft.com "Ron Herhuth" <Ron.Herhuth@tatumpartners.com> wrote in message news:6cdd01c4f34f$9c8a45d0$f25d2981@tatumlink.com... I have successfully made a PHP script that takes dynamically generated HTML and creates a Word Doc then saves it to the server and creates a link to itself. This is fine and dandy but now I have to do a multipage document using several dynamically generated pages...this isnt a problem BUT I need to put a page break following each dynamically generated page. Is there some MS WORD command that I could embed in the HTML I am generating that will cause a page break? This seemingly simple task is killing me. Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php