[python-win32] win32print not printing

Marcelo Almeida marcelo.cra at hotmail.com
Fri Jan 25 21:50:48 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
>  <http://mail.python.org/mailman/listinfo/python-win32>Providenza &
> Boekelheide, Inc.


HP Deskjet F4480. I'll look into this PCL. Maybe that's the way.

Thanks to both of you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20130125/53065a69/attachment.html>


More information about the python-win32 mailing list