Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: Connect to Default Printer Date: Thu, 24 Mar 2016 08:15:21 -0400 Organization: IISS Elusive Unicorn Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de /m1oABsPsVGnVAd6igKooQ9HBC9PWp8S0oaKG7V5IFsQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'message-id:@4ax.com': 0.09; 'pixel': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'output': 0.13; 'file,': 0.15; 'thu,': 0.15; '2016': 0.16; '80s': 0.16; 'afternoon.': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'url:timgolden': 0.16; 'memory': 0.17; 'url:home': 0.18; "i've": 0.25; '(which': 0.26; 'header:X -Complaints-To:1': 0.26; 'compatible': 0.27; 'raw': 0.27; 'allows': 0.30; 'print': 0.30; 'url:python': 0.33; 'stream': 0.33; 'file': 0.34; 'text': 0.35; 'something': 0.35; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'expect': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'late': 0.38; 'anything': 0.38; 'data': 0.39; 'to:addr:python.org': 0.40; 'software': 0.40; 'default': 0.61; 'url:me': 0.64; 'mar': 0.65; 'direct': 0.68; 'obtained': 0.76; 'fact.': 0.84; 'dennis': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-73-117-233.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105604 On Thu, 24 Mar 2016 13:39:18 +1300, Bryon Fawcett 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/