Printing RTF file under win32

Discussion in 'Python' started by Mark Carter, Jan 21, 2011.

  1. Mark Carter

    Mark Carter Guest

    I'm using Python 2.6.5 on win32. I would like to print a batch of RTF
    files on a printer. I don't want to use the win32api.ShellExecute
    command because that invokes Word, and Word has been configured in a
    strange way by one of our admins, making it inconvenient to use.

    What should I do?
     
    Mark Carter, Jan 21, 2011
    #1
    1. Advertising

  2. Mark Carter

    Chris Rebert Guest

    On Fri, Jan 21, 2011 at 2:12 AM, Mark Carter <> wrote:
    > I'm using Python 2.6.5 on win32. I would like to print a batch of RTF
    > files on a printer. I don't want to use the win32api.ShellExecute
    > command because that invokes Word, and Word has been configured in a
    > strange way by one of our admins, making it inconvenient to use.
    >
    > What should I do?


    Invoke WordPad instead?
    http://en.wikipedia.org/wiki/WordPad

    Cheers,
    Chris
     
    Chris Rebert, Jan 21, 2011
    #2
    1. Advertising

  3. Hi!

    Try this line:
    "C:\Program Files\Windows NT\Accessories\wordpad.exe" /p D:\data\fil.rtf
    (change the path if you have a windows 64 bits)

    @-salutations
    --
    Michel Claveau
     
    Michel Claveau - MVP, Jan 21, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. peter
    Replies:
    0
    Views:
    409
    peter
    Apr 29, 2004
  2. Thorsten23

    Printing rtf documents in java

    Thorsten23, May 6, 2007, in forum: Java
    Replies:
    3
    Views:
    997
    Stefan Ram
    May 7, 2007
  3. Larry Neylon
    Replies:
    5
    Views:
    1,191
    Larry Neylon
    Jul 23, 2009
  4. Tony
    Replies:
    2
    Views:
    296
  5. Ziv Tepman
    Replies:
    0
    Views:
    69
    Ziv Tepman
    Jan 21, 2014
Loading...

Share This Page