More info, please. Do you want to:
1) Generate a Word document with a Unix program?
2) Print a DOC file, from the Unix system, without involving a PC?
3) Have Unix send a DOC file to a Windows PC and have the PC print it?
I don't know of any way to do 1) or 2). For 3), however, there are several
options:
a) Move the file to the PC via Zmodem, Kermit, FTP, Samba, or similar. Then
you need to tell Windows to print it. Our telnet program, AnzioWin, has a
command WINPRINT that does just that; and the command can be issued from the
Unix host. WINPRINT will print it on the default printer, using the program
associated with the program's filename extension (e.g., Word for .DOC files).
b) Our LPD client for Windows, PWLPD (part of our Print Wizard package), can
be configured to print according to the file extension. So then you would
"print" it on Unix, which would actually pass it to PWLPD, which would tell
Windows to have Word print it (even on a non-default printer).
Regards,
....Bob Rasmussen, President, Rasmussen Software, Inc.
personal e-mail: r...@anzio.com
company e-mail: r...@anzio.com
voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
fax: (US) 503-624-0760
web: http://www.anzio.com
Well, one feasible solution (ignoring some of your stuff which
could be used) would be to despatch the document to a Windows PC
where MS Word is installed. At www.kabelmax.de there is lpd.zip
for Windows which accepts files by UNIX's LPR protocol and does
_whatever you like_ to them, any command line or batch file;
I presume that this can include launching Microsoft Word to
print the document (without leaving it open); if this isn't so
out of the box then some automation can be done with other
Windows tools. For that matter, Windows' WordPad program has
some ability to handle Word documents, so you might not need to
have Word itself installed on such a print server.
I don't know what tools exist for UNIX, or for Java on UNIX, to
support document formats which Word claims to be able to create;
specifically, save as RTF (Rich Text Format). Someone on a mailing
list* once claimed that StarOffice was the only UNIX RTF tool around;
well, I was told that it also handles straight Word documents...
http://www.aplawrence.com/Unixart/star.html (who else? - but a page
written by Roberto Zini), and
*http://www.biglist.com/lists/dssslist/archives/199802/msg00000.html
(which was nearly three years ago and not necessarily authoritative).
Then you should be able to print it directly using no formatting,
etc., from the Unix system. Check the useage of the 'raw' option.
Huh? I think you misunderstood. It's not a printer-output file (such as PCL),
it's the original DOC file. Something (Microsoft Word) needs to read it and
produce printer-specific output. Dumping it directly to the printer will waste
a great deal of paper.
As another person and I have mentioned, some LPDs for Windows have this
capability.
At least I thought this was a good idea until it occurred to me:
what about macro viruses and trojans? Even in RTF documents...
And if you set up a system to accept and open Word documents
from anywhere, without validation -
Well, I think I remember that this particular Windows LPD program
can be made to accept transmissions only from certain sources
(i.e. your UNIX server), so that's security remedy number one.
And if you can, simply switch the macro facility off altogether -
or use the one of the free Windows Word document viewers that
they used to offer, that doesn't do macros; or WordPad, or StarOffice.
In Rich Text Format you presumably can spot and filter out macros.
If you somehow already got infected - I'm sorry...
>> >More clarification: I want to be able to send a *.doc file sitting
>> >on a Unix system to the printer via unix lpr command or by cat >
>> >device (printer). This doc file is a Windows Word document with all
>> >the formatting.
>> Then you should be able to print it directly using no formatting,
>> etc., from the Unix system. Check the useage of the 'raw' option.
>Huh? I think you misunderstood. It's not a printer-output file
>(such as PCL), it's the original DOC file. Something (Microsoft
>Word) needs to read it and produce printer-specific output. Dumping
>it directly to the printer will waste a great deal of paper.
I did mis-understand. I took the 'all the formatting' to mean
the document was formatted for the printer - not the internal
'format' of the .doc file.
David Rolenc <dro...@rtlogic.com> wrote in message
3C0EBD87...@rtlogic.com...
However you can try to edit the script for this printer , and send the
formatted file in raw binary mode to the printer. Could be hard job.
Pablo
Pablo, ignore all mention of star office. it's not available for Open Server
5 and I don't know why so many people keep suggesting it other than that
they feel they have to say something even though they have no idea what.
It is just barely possible, by dint of lots of effort, to get an old version
of star office to run on open server, by using a skunkware package called
"lxrun" but it is far from trivial to get it all up and working.
I've done it, so I know. It is no longer possible to get the old versions of
star office, and even if you found a CD or a tar in a backup somewhere, it
is impossible to activate it after install because the registration web site
is no longer there as the company that made it is no longer there. Sun, who
owns it now, is not giving out registration keys for the old versions.
enough destrucive criticism, now for construction,
What exactly would you like to do? you didn't describe your desired printing
scenario enough to really offer an answer.
If you want unix to be able to print word documents all by itself, then I
don't know what converters might be out there to do that. I beleive there is
at least one or two commercial utilities out there that can run on unix,
take a word doc, and render it as postscript pr pcl or maybe html. any of
which can be printed by various more common unix printing and imaging
utilities.
In this scenario, I mean unix must be able to print the doc all by itself,
such as from a cron job or in the background as part of some application.
If you mean that there is one or more directories on the unix box which are
shared and visible to the windows PC's via samba or AFPS or visionfs or
facetwin etc... and the windows machines create and store their word docs
there, and you want the windows users to be able to print these documents
out on a printer that happens to be connected to the unix box (even if it's
via LPD/LPR (network & printserver)) then that is very easy by using samba,
(or afps, or visionfs, or facetwin) to "share" that unix printer. then in
windows you "install" the printer by browsing to the unix box and selecting
"install" or "connect" on the new printer. In this scenario, the document
and the printer both happen to be on the unix box but really windows is
doing the printing.
If you want the first scenario, perhaps you can install something like
PrintWizard (www.anzio.com) or that lpr program someone else mentioned on a
windows PC, and from unix, you send the documents to the PC which can print
them. in this case, the printer can be connected to the PC, or the unix box,
or on a network printserver. Because I don't think tyou are going to find
any unix program that can print or convert word docs. There are a couple gnu
projects out there that try to do this, but the last time I tried them
(admittedly over a year ago) they weren't useful yet except for extracting
text and some (not all) images.
--
Brian K. White -- br...@aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani