View word documents in browser on a webpage

Posted on 2013-05-26
Last Modified: 2013-06-11

What is a good, reliable and preferably free tool or method to view word 2003-2007-2010 documents online on a webpage, like in an iframe?

Question by:peps03

Expert Comment

ID: 39197871
Why don't you try

is a GNU licensed project

Author Comment

ID: 39197946
Thanks, but when trying to view docx, i get an error.
LVL 108

Expert Comment

by:Ray Paseur
ID: 39197979
You may find that a docx is just a doc, but encoded in the form of a zip archive.  You might be able to unzip and treat the resulting file like a doc.  I have never done this so I do not have a teaching example, but it seems like it might be a promising thing to pursue.
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39198034
No, it's not that simple.  I have a 'docx' that contains less than 1k of text but the 'docx' file is 49,118 bytes.  Looking at it in Filealyzer, it has a lot of 'word/????.xml' like 'word/document.xml' and 'word/theme/theme1.xml' followed by PK which is usually the signature for PKzip.  It's not just a single Zip file but apparently a lot of little sections containing all the usual Microsoft formatting info whether you need it or not.
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline


Author Comment

ID: 39198049
Hmm the Google file-viewer also doesn't open docx. (Although it says it does support it). On the other hand, dropbox does have  a tool to view docx in the browser.
LVL 20

Expert Comment

by:Mark Brady
ID: 39199002
Here is a free tool for viewing docx in Firefox. This one can convert the file to html to if you wish. I can't find any cross browser solutions for you though.

Author Comment

ID: 39201836
hmm thanks. really need cross-browser.

any idea why the google file viewer isn't opening docx while it says it should?

Accepted Solution

peps03 earned 0 total points
ID: 39225497 works...
you have to add

AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx

to your htaccess!

Author Closing Comment

ID: 39237117
fixed it!

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now