Exporting to RTF document