Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85765

Re: Printing to printer, windows 7

Date 2015-02-18 02:11 +0000
From MRAB <python@mrabarnett.plus.com>
Subject Re: Printing to printer, windows 7
References <c4b69693-c5fa-4c89-b4ab-a7a1fe898c22@googlegroups.com> <54E2AF49.500@davea.name> <43r7eahbp697numc441je225t093dm7ce3@4ax.com>
Newsgroups comp.lang.python
Message-ID <mailman.18801.1424225701.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2015-02-18 01:41, Dennis Lee Bieber wrote:
> On Mon, 16 Feb 2015 22:02:33 -0500, Dave Angel <davea@davea.name> declaimed
> the following:
>
>
>>It is a simple problem.  All you have to do is send the correct bytes to
>>a file object that will transfer those bytes to the printer.  It's been
>>a long time since I used Windows, but if I recall, you just open the
>>device "prn"  or maybe "lpt1" and go.
>>
>
> C:\Users\Wulfraed\Documents>copy t.txt prn:
> "prn:" is not a recognized device.
> The system cannot find the file specified.
>
> C:\Users\Wulfraed\Documents>copy t.txt lpt1:
> "lpt1:" is not a recognized device.
> The system cannot find the file specified.
>
> 	And...
>
> C:\Users\Wulfraed\Documents>copy t.txt CN3BSFVGP805ZZ:
> "CN3BSFVGP805ZZ:" is not a recognized device.
> The system cannot find the file specified.
>
> 	That's the port name associated with my HP printer when looking at the
> control panel properties.
>
> 	LPT1: appears to be linked to "Quicken PDF Printer" in the port list,
> but is not available from command line.
>
You can use the "NET USE" command to make LPT1: refer to your printer.
The details are on the Web. :-)

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Printing to printer, windows 7 ken.hessel@gmail.com - 2015-02-16 18:08 -0800
  Re: Printing to printer, windows 7 Dave Angel <davea@davea.name> - 2015-02-16 22:02 -0500
  Re: Printing to printer, windows 7 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-02-17 00:50 -0500
  Re: Printing to printer, windows 7 sjmsoft@gmail.com - 2015-02-17 12:10 -0800
  Re: Printing to printer, windows 7 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-02-17 20:41 -0500
  Re: Printing to printer, windows 7 sohcahtoa82@gmail.com - 2015-02-17 17:59 -0800
  Re: Printing to printer, windows 7 MRAB <python@mrabarnett.plus.com> - 2015-02-18 02:11 +0000

csiph-web