Re: Printing a text file

2004-03-30 Thread Bill Curnow
On 30 Mar 2004 at 2:44, [EMAIL PROTECTED] wrote: > Hmm - does this still work with modern GDI printers which rely on > graphics output only and cannot cope with text sent straight from DOS > (eg. the most common Epson inkjets now available)?? I'm going to hazard a guess and say yes. My thinkin

RE: Printing a text file

2004-03-30 Thread Bill Curnow
On 29 Mar 2004 at 16:43, Peter Eisengrein wrote: > open(PRINTER,"| lpr -S server -P printer"); > print PRINTER $data; > > or use it as a system() call. Or a third option: $return = `lpr -S $printserver -P $printer -o l $printfile`; This allows you to check the output of the lpr command. If

Re: Printing a text file

2004-03-29 Thread RWAPSoftware
In a message dated 29/03/2004 19:46:37 GMT Daylight Time, [EMAIL PROTECTED] writes: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\>print /? Prints a text file. PRINT [/D:device] [[drive:][path]filename[...]]    /D:device   Specifies a print

RE: Printing a text file

2004-03-29 Thread Hugh Loebner
Hi Peter, The command: system ">print temp.txt" prints, but only to the screen. I can not get the command: PRINT [/D:device] [[drive:][path]filename[...]] to work. Going to the Control Panel for 'printers and other hardware' I get Properties Gestetner 2212 RPCS location blank Port

RE: Printing a text file

2004-03-29 Thread Andrew Timberlake-Newell
> On 29 Mar 2004 at 9:03, Hugh Loebner wrote: > > > I can get perl to write a text file 'xyz.txt' to disk with > no problem, > > but I don't know how to actually get my preferred printer > to actually > > print it out. > > Peter has already mentioned using the windows "Print" command.  > D