[python-win32] win32print not printing

Tim Roberts timr at probo.com
Fri Jan 25 19:53:27 CET 2013


Marcelo Almeida wrote:
>
> I am trying to print a string (not a file) with win32print api and I'm
> using Tim Golden's
> <http://timgolden.me.uk/python/win32_how_do_i/print.html> third block
> of code (pasted below) as a testing example but without success. There
> is just no errors and the printer spool show the file rapidly and then
> nothing occurs. I could print using the ShellExecute but that's not
> what I need, since it prints files (and file names to pages, which I
> also don't want). Here is Tim Golden's snippet I'm using to test:

What printer is this?  Most printers these days expect to receive their
"printer control language" (PCL or Postscript or whatever).  They don't
have any idea what to do with a raw text string.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list