For viewing by programs other than MS Word, you should set the variable useWord to false. This will turn off some of the special RTF keywords recognised by Word (and possibly other advanced RTF readers).