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

Print to Windows default Printer

P: n/a
I am new to Python and I am having considerable trouble trying to print
(using a simple script) to the default printer rather than the screen.
Thanks for any help.
S
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Samantha wrote:
I am new to Python and I am having considerable trouble trying to print
(using a simple script) to the default printer rather than the screen.
Thanks for any help.


Please show some example code, and explain in more detail
what you are trying to do. There are perhaps *dozens*
of different ways to do printing under Windows, and we
can't guess which approach you are trying, nor which
might be suitable for your needs.

-Peter
Jul 18 '05 #2

P: n/a
Thanks for he quick response. This is small sample code from a PSP script to
get Exit Info of a digital image. I want to print to the printer rather than
the screen.
-------
Info = App.Do( Environment, 'ReturnImageInfo' )

print
print 'Input Device Information'
for key in InputDeviceKeys:
if OnlyExistingData == 0 or Info[key] != '':
print key, ': ', Info[key]
print

print 'Artist Information'
for key in ArtistKeys:
if OnlyExistingData == 0 or Info[key] != '':
print key, ': ', Info[key]
print
------
Is there an easy way to do it. Right now I copy and paste to a txt file
then print the file?
S

"Peter Hansen" <pe***@engcorp.com> wrote in message
news:v4********************@powergate.ca...
Samantha wrote:
I am new to Python and I am having considerable trouble trying to print
(using a simple script) to the default printer rather than the screen.
Thanks for any help.


Please show some example code, and explain in more detail
what you are trying to do. There are perhaps *dozens*
of different ways to do printing under Windows, and we
can't guess which approach you are trying, nor which
might be suitable for your needs.

-Peter

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.