# RTFImport Method

> Obsolete method that loads an RTF file into a Text Control at the caret position, or with Extended set to 1 in a Viewer mode with hypertext information.

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

---

Loads the contents of an RTF file with the specified name into a Text Control.

### Syntax

```vbscript
TXTextControl.RTFImport Filename[, Extended]
```

### Parameters

| Parameter | Description |
|---|---|
| Filename | Is the name of the RTF file that is to be loaded. |
| Extended | Optional. If this parameter is missing or zero then the text is inserted at the current caret position. If this parameter has a value of 1 then Text Control supports a special Viewer mode. In this mode, additional hypertext information is imported from the RTF file. See TX Info Artist manual for details. |

### Return Value

The method returns True when the data could be imported. Otherwise it returns False.

### Data Types

| Name | Data type |
|---|---|
| FileName | String |
| Extended | Long |
| 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

- [RTFExport Method](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/rtfexport-method/llms-full.txt)
- [ViewImagePath Property](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/viewimagepath-property/llms-full.txt)

---

## Nearby

- **Previous:** [RTFExport Method](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/rtfexport-method/llms-full.txt)
- **Next:** [TextExport Method](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/textexport-method/llms-full.txt)
