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


Groups > comp.lang.python > #105604

Re: Connect to Default Printer

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Newsgroups comp.lang.python
Subject Re: Connect to Default Printer
Date 2016-03-24 08:15 -0400
Organization IISS Elusive Unicorn
Message-ID <mailman.91.1458821701.2244.python-list@python.org> (permalink)
References <CAMwNgK7ietz1oV0wjBXkEtTUuBLEa_MgYaLwgZUXpY04kvK3Lg@mail.gmail.com>

Show all headers | View raw


On Thu, 24 Mar 2016 13:39:18 +1300, Bryon Fawcett <jandbfawcett@gmail.com>
declaimed the following:

>Good afternoon.
>
>Could you please advise me how to connect the python software to my default
>printer.
>
	That would depend upon the OS and what type of output you intend to
produce -- the most compatible form is to generate a FILE, and use OS
provided utilities to print said file after the fact.

	I've not seen anything that allows direct output to a printer since the
late 80s (many printers don't even understand a raw text file these days;
they expect either PostScript or something that is a printer-specific
stream of pixel data obtained from a memory image of the page).

http://stackoverflow.com/questions/12723818/print-to-standard-printer-from-python
(which links to http://timgolden.me.uk/python/win32_how_do_i/print.html )
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

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


Thread

Re: Connect to Default Printer Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-03-24 08:15 -0400

csiph-web