[Tutor] Hoping to benefit from someone's experience...

python at bdurham.com python at bdurham.com
Wed Apr 16 04:18:43 CEST 2008


Here's how we work with RTF: We create a Word document formatted exactly
like we want with special markers (unique text) inserted in places where
we want to programmatically add text.

We save this document to RTF (this RTF becomes our template file),
remove all the carriage returns and line feeds, and then replace our
marker text with the text we want to insert.

Each new version of Word introduces new RTF codes and markup patterns.

Recommendation: Find a very old version of Word (Word 95) to generate
your RTF 'templates'. The older versions of Word generate much simpler
RTF that is forward compatible.

Good luck!

More information about the Tutor mailing list