# RTFExport Method

> Obsolete method that writes the contents of a Text Control to a file in Rich Text Format (RTF) and returns True when the data has been written to the file.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > Obsolete Properties, Methods and Events > RTFExport Method
- **148 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/rtfexport-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/rtfexport-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/rtfexport-method/llms-full.txt

---

Writes the contents of a Text Control to a file with the specified name using the Rich Text Format.

### Syntax

```vbscript
TXTextControl.RTFExport Filename
```

### Return Value

The method returns True when the data has been written to the file. Otherwise it returns False.

### Data Types

| Name | Data type |
|---|---|
| FileName | String |
| Return value | Boolean |

### Remarks

RTF (Rich Text Format) is one of the most common interchange formats for text documents. Most word processors available for Windows are able to read and write RTF files.

### See Also

- [RTFImport Method](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/rtfimport-method/llms-full.txt)

---

## Nearby

- **Previous:** [EnableHyperlinks Property](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/enablehyperlinks-property/llms-full.txt)
- **Next:** [RTFImport Method](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/rtfimport-method/llms-full.txt)
