Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Printing RTF file under win32

Reply
Thread Tools

Printing RTF file under win32

 
 
Mark Carter
Guest
Posts: n/a
 
      01-21-2011
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?
 
Reply With Quote
 
 
 
 
Chris Rebert
Guest
Posts: n/a
 
      01-21-2011
On Fri, Jan 21, 2011 at 2:12 AM, Mark Carter <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
 
Michel Claveau - MVP
Guest
Posts: n/a
 
      01-21-2011
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: what do you think on my summary on C, for 13-15 years studentin .rtf format [to cut and paste in a .rtf file] Kleuskes & Moos C Programming 8 10-13-2011 08:51 AM
Printing RTF files in Word using Response.ContentType Larry Neylon ASP General 5 07-23-2009 12:46 PM
Printing rtf documents in java Thorsten23 Java 3 05-07-2007 04:02 AM
Printing on a printer with tractor feed under win32 - question peter Perl 0 04-29-2004 09:35 AM
Doing a 'mail merge' with RTF files (aka RTF templates) Tony Perl Misc 2 08-27-2003 08:12 AM



Advertisments