Reputation: 53
So, currently I am creating an application that when you press a button on the GUI it needs to send the current image to the printer. It is running on windows. I have looking all around the standard library and for third party applications that will help me do this.
Does anyone know of something that could help me with this problem?
Thanks.
Upvotes: 5
Views: 12435
Reputation: 9431
Check this link: http://timgolden.me.uk/python/win32_how_do_i/print.html
And use it to print a bitmap file that you have saved to disk. jpg and png won't work for some reason - probably because they need to be converted to a printer-friendly format.
I don't know much about this stuff, but printing a bitmap with tim golden's code definitely works for me.
Upvotes: 3