best way to display a word file on a php page in the same format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkshansid
    New Member
    • Oct 2008
    • 232

    best way to display a word file on a php page in the same format

    what is the best way to display a word file on a php page in the same format
    as it is on word format ?
    word file has some very well diplay of data in tabular format
    php page has includes header,footer,l eft,right
    i want to display it in the middle but by simply copy pasting error it doesnt display in the same format
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Originally posted by kkshansid
    what is the best way to display a word file on a php page in the same format as it is on word format ?
    if you ask me, there ain’t one. (HTML is not MS Word)

    Originally posted by kkshansid
    i want to display it in the middle but by simply copy pasting error it doesnt display in the same format
    as I said, HTML is not Word. if you’re not familiar with HTML, have a look at some tutorials (it’s not that complicated) and by using CSS you can make a HTML table look the way you like it.

    Comment

    • kkshansid
      New Member
      • Oct 2008
      • 232

      #3
      u dont understood actually i have some data in word file format i want to dispay it on web as it is so that any one can see and use it

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        I understand what you want, it’s just that a website and a Word document are very very different things (by nature).

        to use it (edit, save, etc.) you need a Word plugin (I doubt that any other browser than IE provides something like that). if, and only if, you have a Microsoft server you can use the COM extension to operate on word files (e.g. extract content), but that’s, how shall I put it, rather crude.

        Comment

        • code green
          Recognized Expert Top Contributor
          • Mar 2007
          • 1726

          #5
          i think you are making this difficult for yourself.
          i have some data in word file format i want to dispay it on web
          You can simply "Save AS" a web page and word will convert the document into HTML for you.
          If it needs to be automated then I'm sure it can be done using vba or vbscript.
          Or create a hyperlink so users can open or download the document directly.

          Comment

          Working...