# TextExport Method

> Obsolete method that writes the selected text of a Text Control to a file in ANSI format, overwriting an existing file, and returns True on success.

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

---

Writes the selected text to a file in ANSI format.

### Syntax

```vbscript
TXTextControl.TextExport FileName
```

### Parameters

| Parameter | Description |
|---|---|
| FileName | Is the name of the file, Text Control uses for saving. When the file does not exist, a new file with this name is created. When the file exists, Text Control overwrites its current contents. |

### Return Value

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

### Data Types

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

### See Also

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

---

## Nearby

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