By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,369 Members | 1,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,369 IT Pros & Developers. It's quick & easy.

creating a word document from php

P: n/a
EJ
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.
Thanks in advance.
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"EJ" <ej*******@uq.net.au> wrote:
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.


http://www.google.com/search?q=php+create+word+document

HTH;
JOn
Jul 17 '05 #2

P: n/a
EJ wrote:
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.


If you can rely on Office 2000 or later then I recommend generating a
Word compatible HTML document. That way you can link the same page as:
www.my-script.html
and www.my-script.doc

and hey-presto you get either a webpage or a document!

The easiest way to do this is to create a template in Word and save as
HTML. Use str_replace or regexps to fill in the content.

If you need to handle earlier Word then use RTF (rubbish text format) to
pass to Word. It's not as obvious though.

Jul 17 '05 #3

P: n/a
"EJ" <ej*******@uq.net.au> wrote in message news:<40********@news.comindico.com.au>...
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.


Creating MS Word Doc is bit hard (IMHO). The best hack I have ever
seen is <http://groups.google.com/groups?selm=PEE4b.41571%24Qy4.22048%40fed1read05>

--
"Success is not what you achieve, but it is what you die for"
If you live in USA, please support John Edwards.
Email: rrjanbiah-at-Y!com
Jul 17 '05 #4

P: n/a
"EJ" <ej*******@uq.net.au> wrote in message news:<40********@news.comindico.com.au>...
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.


Creating MS Word Doc is bit hard (IMHO). The best hack I have ever
seen is <http://groups.google.com/groups?selm=PEE4b.41571%24Qy4.22048%40fed1read05>

--
"Success is not what you achieve, but it is what you die for"
If you live in USA, please support John Edwards.
Email: rrjanbiah-at-Y!com
Jul 17 '05 #5

P: n/a
EJ
thanks
"Jon Kraft" <jo*@jonux.co.uk> wrote in message
news:Xn**************************@130.133.1.4...
"EJ" <ej*******@uq.net.au> wrote:
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.


http://www.google.com/search?q=php+create+word+document

HTH;
JOn

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.