By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,028 Members | 1,013 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,028 IT Pros & Developers. It's quick & easy.

Printing Documents

P: n/a
How can I print html documents in Python on Windows?

Sep 7 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
defcon8 wrote:
How can I print html documents in Python on Windows?
;-)

1. You start the Microsoft Internet Explorer and make some space on the
Desktop for a Python shell window.
2. You start the Python shell and position it within the prepared space
3. Still looking at the Python shell you load the document into the
Internet Explorer and then use its menu [File] -[Print] to invoke
printing (don't forget to keep your eye on the Python shell...)

;-)

Claudio Grondi
P.S. There are many options to automate usage of MSIE from Python, so
maybe if you explain what you actually intend to achieve, someone else
can give you a better advice.
Sep 7 '06 #2

P: n/a

Claudio Grondi wrote:
defcon8 wrote:
How can I print html documents in Python on Windows?
;-)

1. You start the Microsoft Internet Explorer and make some space on the
Desktop for a Python shell window.
2. You start the Python shell and position it within the prepared space
3. Still looking at the Python shell you load the document into the
Internet Explorer and then use its menu [File] -[Print] to invoke
printing (don't forget to keep your eye on the Python shell...)

;-)

Claudio Grondi
P.S. There are many options to automate usage of MSIE from Python, so
maybe if you explain what you actually intend to achieve, someone else
can give you a better advice.
I think the automation of opening of html in IE, then the printing of
it would be possible. Would you be able to tell me how that is done?

Sep 7 '06 #3

P: n/a
defcon8 wrote:
How can I print html documents in Python on Windows?
Hopefully this technique will work:

http://timgolden.me.uk/python/win32_...l#shellexecute

TJG

Sep 7 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.