creating a word document from php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • EJ

    #1

    creating a word document from php

    Does anyone know if there is a class for creating doc files? I have seen
    ones for pdf and excel spreadsheets.
    Thanks in advance.


  • Jon Kraft

    #2
    Re: creating a word document from php

    "EJ" <ejhannan$@uq.n et.au> wrote:
    [color=blue]
    > Does anyone know if there is a class for creating doc files? I have seen
    > ones for pdf and excel spreadsheets.[/color]



    HTH;
    JOn

    Comment

    • Kevin Thorpe

      #3
      Re: creating a word document from php

      EJ wrote:
      [color=blue]
      > Does anyone know if there is a class for creating doc files? I have seen
      > ones for pdf and excel spreadsheets.[/color]

      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:

      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.

      Comment

      • R. Rajesh Jeba Anbiah

        #4
        Re: creating a word document from php

        "EJ" <ejhannan$@uq.n et.au> wrote in message news:<4039da75$ 1@news.comindic o.com.au>...[color=blue]
        > Does anyone know if there is a class for creating doc files? I have seen
        > ones for pdf and excel spreadsheets.[/color]

        Creating MS Word Doc is bit hard (IMHO). The best hack I have ever
        seen is <http://groups.google.c om/groups?selm=PEE 4b.41571%24Qy4. 22048%40fed1rea d05>

        --
        "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

        Comment

        • R. Rajesh Jeba Anbiah

          #5
          Re: creating a word document from php

          "EJ" <ejhannan$@uq.n et.au> wrote in message news:<4039da75$ 1@news.comindic o.com.au>...[color=blue]
          > Does anyone know if there is a class for creating doc files? I have seen
          > ones for pdf and excel spreadsheets.[/color]

          Creating MS Word Doc is bit hard (IMHO). The best hack I have ever
          seen is <http://groups.google.c om/groups?selm=PEE 4b.41571%24Qy4. 22048%40fed1rea d05>

          --
          "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

          Comment

          • EJ

            #6
            Re: creating a word document from php

            thanks
            "Jon Kraft" <jon@jonux.co.u k> wrote in message
            news:Xns949876C 544044jonjonuxc ouk@130.133.1.4 ...[color=blue]
            > "EJ" <ejhannan$@uq.n et.au> wrote:
            >[color=green]
            > > Does anyone know if there is a class for creating doc files? I have seen
            > > ones for pdf and excel spreadsheets.[/color]
            >
            > http://www.google.com/search?q=php+create+word+document
            >
            > HTH;
            > JOn[/color]


            Comment

            Working...