LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2002, 11:51 PM   #1
104625
LQ Newbie
 
Registered: May 2002
Posts: 8

Rep: Reputation: 0
Unhappy Printing Help!!!!!


Hi, I am stuck in a situation. I currently have a HP printer connected to my linux box using JetDirect. I don't have any problems printing text files. However I plan to print word documents. Is there any special requirement that I would need to have to print .doc files?? Should I print it to a file (.prn) then try it???
 
Old 08-07-2002, 01:57 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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.

Last edited by DavidPhillips; 08-07-2002 at 01:58 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printing sider69 Linux - Newbie 1 09-30-2005 11:52 AM
Cups Printing problem, Linux to Linux Printing problem folken718 Slackware 2 11-08-2004 11:10 AM
Scribus Printing How to put 4 flyers on a page when printing jazzboy Linux - Software 0 05-02-2004 07:13 AM
no printing subh Debian 2 11-16-2003 07:06 PM
printing in 8.1 eccarlsen Slackware 4 06-25-2002 05:56 PM


All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration