try this... I found it here
http://home.c2i.net/dark/My_Mozilla_FAQ.html
There are too many approaches to mention them all. You can use the original MS WordView on Linux as a helper application, if you buy the excellent Crossover plugin from Codeweavers. And as most things on Linux, you can do it all for free. Here is how I browse MSWord .doc attachments on the fly in Netscape 4.*, provided they don't contain spaces in the filename. The exact same approach is valid for Mozilla, it will actually load the page in whatever browser you have open at the moment.
Install WV and libwmf
For image-support in WV: install ImageMagick .
WV includes scripts to convert from just about anything text-related to ... something else. wvMime will let you open a file from Netscape and display in Ghostview, but for me that was way too slow. I picked up an idea or two in that and other scripts and came up with this simple 5-liner that converts a .doc file to html:
#!/bin/sh
PATH=/bin:/usr/bin:/usr/local/bin
FILE=$HOME/WVTMP.$$.html
wvWare "$*" > $FILE 2>/dev/null
netscape -remote 'openUrl(file://'$FILE')'
rm -f $FILE
As root, save the script in /usr/bin as for instance “showdoc”.
“chmod ugo+x showdoc” to make it executable
Then add a Netscape preference for helper apps:
Description: Microsoft Word Document
MIMEType: application/msword
Suffixes: doc
Handled by:
Application: /usr/bin/showdoc %s
The script removes the temporary html-file from your home-dir again once it's been rendered in the browser. The result may not be 100% identical to the original document, but WV does a very good job at it. Support for “walking ants” and “fireworks” is absent, but I doubt anyone really miss it.
NOTE:
Netscape won't handle filenames with spaces on Linux, so if they contain a space you must save to disk first and run the script from commandline like this
showdoc “stupid file name.doc”
The html'ified file will still render in Netscape, if it's running. If Mozilla 5 is running, it will render there.