How to write RTF from Python?

dsavitsk dsavitsk at e-coli.net
Fri Apr 25 18:18:03 EDT 2003


<achrist at easystreet.com> wrote in message
news:3EA97D61.3CC9FE74 at easystreet.com...
> Any suggestions of the shortest path from a Python program to RTF
> output?  RTF seems to be the best (reasonable combination of
> features and compatability) common denominator for exporting
> data so that (windows) users can bring it into their own word
> processing program, whatever that may be.  (Any problem with
> that?)
>
> Requirements are about like this:
>
> 1. Don't need an edit control, just want to write a file, but if
> I have to open an edit window, I can.
>
> 2. Don't want to do too much fancy.  Text, headings, bulleted
> lists,  maybe some variations in font size.
>
> 3. Development platform is WinNT, target platform is any reasonably
> recent Windows machine (eg either anything newer than Win95 release 1
> or Win98 or better).

Your requirements suggest to me that html is the best common denominator,
and it's easier to write.

-d






More information about the Python-list mailing list