Mail Archives: cygwin/2003/07/29/23:07:00
--- "Hannu E K Nevalainen (garbage mail)" <garbage_collector AT telia DOT com> wrote:
> > -----Original Message-----
> > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> > Of Igor Pechtchanski
> > Sent: Tuesday, July 29, 2003 7:16 PM
>
> > > > Was my writing unclear?
> >
> > No, no, it was my late night reading...
>
> Ahh... glad to hear that ;-)
>
> > > > > Also, try setting up a dummy printer that prints to
> > > > > file and see if that works.
> > > > > Igor
> > > >
> > > > Hrm... why didn't I think of that! >:-P
>
> --8<--
> > > > Works like a charm... so this should prove one thing:
> > > > Cheap HP printers aren't up to all the tasks you could expect.
> > > > :-/
>
> > > I don't know about the DOS print command, but lpr is just a raw
> > > spooler. It is intended to be used as a filter to send data *already
> > > formatted for a specific printer* to a print queue. In other words, it
> is
> > > intended to send postscript data to a postscript printer, or PCL data
> to a
> > > PCL-capable printer. lpr knows nothing about any printer and makes no
> > > attempt to inject printer-specific formatting codes. *If and only if*
> your
> > > printer can directly print a text file will using a command like
> > >
> > > lpr -P some_device file.txt
> > >
> > > work. You might try the following. Using notepad or a similar *Windows*
> app,
> > > try printing your autoexec.bat file to your Deskjet printer, but in the
> print
> > > dialog, check the box that says "Print to file" so that the formatted
> data
> > > stream ends up in a file instead of being sent directly to the printer.
> Then,
> > > try spooling that file using lpr and/or the dos print command. Let me
> know what
> > > happens.
> > >
> > > --Rick
>
> Using a single page HTML print from IE6 in "zz.prn"
>
> These do "work":
> D:\>print /D:LPT1: zz.prn
> D:\zz.prn is currently being printed
>
> D:\>print /D:\\P450\DJ720C zz.prn
> D:\zz.prn is currently being printed
>
> This one has problems:
> $ cat /cygdrive/d/zz.prn | lpr -l -PLPT1:
What, exactly, do you mean by "has problems"? Any error messages,
etc?Unfortunately, I have no way to test lpt-style devices since I don't have
any locally-connected printers, either at home or work.
>
> The first doc prints. Any following documents causes the printer to
> "hang" - turning it off is enough to be able to print yet another doc. On
> one occassion I got something that I've never seen before: Power, "no paper"
> and "low ink" leds rapidly flashing in that sequence ;-7
>
> This one "works"
> $ cat /cygdrive/d/zz.prn | lpr -l
> $ echo $PRINTER
> //P450/DJ720C
> $
>
> with one exception on all of them; they do not eject the page at the end of
> printing. Unless you start another document print...
Near as I can tell, this must be a driver problem. It ejects the last page just
fine on my Deskjet 990C.
--Rick
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -