Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93366
| Return-Path | <mail@timgolden.me.uk> |
|---|---|
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'url:sourceforge': 0.03; 'messing': 0.09; 'port,': 0.09; 'pywin32': 0.09; 'python': 0.11; 'file,': 0.15; 'properly': 0.15; 'above)': 0.16; 'compilers': 0.16; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'invoking': 0.16; 'locating': 0.16; 'message- id:@timgolden.me.uk': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; "tim's": 0.16; 'tjg': 0.16; 'url:pywin32': 0.16; 'url:timgolden': 0.16; 'which,': 0.16; 'win32print': 0.16; 'wrote:': 0.16; 'looked': 0.16; 'byte': 0.18; 'string,': 0.18; 'tells': 0.18; '>>>': 0.20; 'windows': 0.20; 'trying': 0.22; 'lawrence': 0.22; 'code.': 0.23; '2015': 0.23; 'module': 0.23; 'header:In-Reply-To:1': 0.24; 'tim': 0.24; 'install': 0.25; 'header:User-Agent:1': 0.26; 'see,': 0.27; "i'm": 0.29; 'looks': 0.29; 'relies': 0.29; 'lines': 0.30; "skip:' 10": 0.30; 'saves': 0.31; 'task': 0.31; 'print': 0.31; 'url:python': 0.33; 'problem': 0.33; 'point,': 0.33; 'received:192.168.100': 0.33; 'file': 0.34; 'that,': 0.34; 'could': 0.35; 'to:addr:python- list': 0.35; 'c++': 0.35; 'but': 0.36; 'text': 0.36; 'except': 0.36; 'there': 0.36; '(and': 0.36; 'alone': 0.36; "didn't": 0.37; 'subject:: ': 0.37; 'version': 0.38; 'someone': 0.38; 'end': 0.39; 'whatever': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'where': 0.40; 'mark': 0.40; 'called': 0.40; 'some': 0.40; 'your': 0.60; 'even': 0.61; 'telephone': 0.62; '(that': 0.63; 'url:%20': 0.63; 'great': 0.64; 'latest': 0.64; 'it!': 0.64; 'url:me': 0.64; 'charset:windows-1252': 0.65; 'here': 0.66; 'internet': 0.69; 'from:addr:mail': 0.70; 'eg:': 0.84; 'interrupt': 0.91 |
| Subject | Re: win32print |
| To | python-list@python.org |
| References | <b_Nkx.8097$Mi.4254@fx38.am4> <mailman.209.1435745712.3674.python-list@python.org> <iNPkx.1$cg6.0@fx02.am4> |
| From | Tim Golden <mail@timgolden.me.uk> |
| Date | Wed, 1 Jul 2015 12:28:10 +0100 |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
| MIME-Version | 1.0 |
| In-Reply-To | <iNPkx.1$cg6.0@fx02.am4> |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.213.1435750094.3674.python-list@python.org> (permalink) |
| Lines | 46 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1435750094 news.xs4all.nl 2962 [2001:888:2000:d::a6]:54596 |
| X-Complaints-To | abuse@xs4all.nl |
| Path | csiph.com!usenet.pasdenom.info!news.stben.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
| Xref | csiph.com comp.lang.python:93366 |
Show key headers only | View raw
On 01/07/2015 12:02, BartC wrote: > On 01/07/2015 11:15, Mark Lawrence wrote: >> On 01/07/2015 09:59, BartC wrote: >>> I need to print a text file to whatever printer in Windows is called >>> 'Generic/Text Only'. I looked for a Python solution and come across Tim >>> Golden's win32print module which looks perfect, eg: >>> >>> http://timgolden.me.uk/pywin32-docs/win32print.html >>> >>> However, that tells me everything I need to know except how or where to >>> download it! > >> That's the standard pywin32 docs that happen to be on Tim's site. Get >> the latest pywin32 here >> http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/ > > Yes, I ended up there at one point, but didn't see a win32print.py file, > only a win32print.cpp one. I think messing about with C++ compilers and > makefiles (that never work properly under Windows) defeats the object of > trying to use Python for this purpose! > > Presumably, nowhere on the internet is there a ready-to-use copy of > win32print.py that someone else could just download with little effort? > > (Anyway, never mind; I'm looking at a solution now that involves > invoking Windows' rundll32 and notepad to do the job. And it saves the > problem of instructing someone on the end of a telephone how to install > even Python let alone locating the add-ons. > > This is task that, in the eighties, would have involved sending a > string, a byte at a time, to the parallel port, perhaps 3 lines of code. > It's great that in 2015 everything is so much simpler!) > If I can interrupt your Jeremiad for a moment, this page might help: http://timgolden.me.uk/python/win32_how_do_i/print.html and it (and the docs you found above) relies on this download page: http://sourceforge.net/projects/pywin32/files/pywin32/ which, as you can see, has been available for every then-valid version of Python for some years now. TJG
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
win32print BartC <bc@freeuk.com> - 2015-07-01 09:59 +0100
Re: win32print Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-01 11:15 +0100
Re: win32print BartC <bc@freeuk.com> - 2015-07-01 12:02 +0100
Re: win32print Tim Golden <mail@timgolden.me.uk> - 2015-07-01 12:28 +0100
Re: win32print BartC <bc@freeuk.com> - 2015-07-01 14:10 +0100
Re: win32print Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-07-01 09:17 -0400
csiph-web