Print to Windows default Printer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Samantha

    #1

    Print to Windows default Printer

    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


  • Peter Hansen

    #2
    Re: Print to Windows default Printer

    Samantha wrote:[color=blue]
    > 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.[/color]

    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

    Comment

    • Samantha

      #3
      Re: Print to Windows default Printer

      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, 'ReturnImageInf o' )

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

      print 'Artist Information'
      for key in ArtistKeys:
      if OnlyExistingDat a == 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" <peter@engcorp. com> wrote in message
      news:v46dnZlNec ChxXDcRVn-3A@powergate.ca ...[color=blue]
      > Samantha wrote:[color=green]
      >> 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.[/color]
      >
      > 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[/color]


      Comment

      Working...