How to display microsoft word document in browser?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gundagautam
    New Member
    • Apr 2014
    • 1

    How to display microsoft word document in browser?

    I am trying to display all type of files like PDF, word documents, MP3, MP4 etc. on web page itself when user clicks particular file. I am doing the code using JSF for displaying all files present in server and front-end am using JQuery. I am able to display files of PDF using object tag. But when I use the same tag for word document file its not working.. Can any suggest how to view word document files, excel files etc on browser page itself?
    I need the same for PPT too

    Thanks in advance.
  • chaarmann
    Recognized Expert Contributor
    • Nov 2007
    • 785

    #2
    You are trying the impossible:
    Word and Excel documents will only be displayed properly on Windows systems, because Microsoft does not produce Office software for other operating systems.
    I use Ubuntu and VisualBasic macros contained in Excel or Word do not run when I open the document with LibreOffice! They need windows and dlls. The good thing: they cannot infect my computer with a virus when opening.
    There is a browser plugin to use LibreOffice when I click on a word or excel file.

    But generally, you can't assume that the user has such a plugin installed.
    And you also want your webpage to be opened on a mobile or tablet-PC, which runs with Apple OS or Android.
    So then just don't use Excel or Word documents! Use only HTML (or as single exception: PDF)!

    Comment

    Working...