WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> How to... >> print to a network printer
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1103817070

Message started by banyoo on Dec 23rd, 2004 at 4:51pm

Title: print to a network printer
Post by banyoo on Dec 23rd, 2004 at 4:51pm
Hi,

I would like to print out tif-files to a network-printer. The printer is attached direkt to the network and can  direct print out tif-files without need of an application.(its a Xerox 8825 wide format printer).
In a dos-box I use "lpr -S 192.168.1.195 -P raw -d  c:\filename.tif" and it works. Using "lpr -S 192.168.1.195 -P raw %WD_FILE%" inside WD nothing happens.
Why?

dirk

Title: Re: print to a network printer
Post by Gert on Dec 23rd, 2004 at 4:59pm
Hello Dirk,

first, you should always surround the %WD_FILE% with "quotes". If the new file has embedded spaces in its name, the command (lpr in your case) will get confused.

So, it should be
[code]
lpr -S 192.168.1.195 -P raw "%WD_FILE%"
[/code]

To find out why your command failed, please have a look at the topic here:
http://www.watchdirectory.net/forum/?board=wd_howtodo;action=display;num=1101757629;start=1#1

that shows you how you can debug this kind of problems.

Gert

Title: Re: print to a network printer
Post by banyoo on Dec 27th, 2004 at 9:15am
Thanks Gert,

you are right, this was the reason, now it works.
Dirk

Title: Re: print to a network printer
Post by Gert on Dec 27th, 2004 at 3:55pm
Ah!
It is often the simple things.
I really wish Microsoft didn't allow spaces in filenames, they always cause trouble.

Gert

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.