# Loading, Saving and Database Support

> Load, append and save TXTextControl documents in files and memory with Load, Save and SaveToMemory, and exchange text with databases as a bound control.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Loading, Saving and Database Support
- **986 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/load-save/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/load-save/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/load-save/llms-full.txt

---

Documents reach `TXTextControl` from files, from memory and from databases. The members below load, append and save documents in files or memory, open the built-in load and save dialog boxes and exchange text with a database when the control is used as a bound control.

The `Change` event tells you that the contents have changed.

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.DataText`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/datatext-property/llms-full.txt) | The DataText property is used internally by Visual Basic when a `TXTextControl` is used as a bound control. |
| [`TXTextControl.DataTextFormat`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/datatextformat-property/llms-full.txt) | When using a `TXTextControl` as a bound control, this property specifies if the data which is exchanged with a database is text or binary data. |
| [`TXTextControl.Device`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/device-property/llms-full.txt) | This property returns or sets the device for which the current `TXTextControl` document is formatted. |
| [`TXTextControl.LoadSaveAttribute`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/loadsaveattribute-property/llms-full.txt) | This property enables an application to specify several attributes that can be used in combination with the [Load](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/load-method/llms-full.txt) and [Save](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/save-method/llms-full.txt) methods. |
| [`TXTextControl.RTFSelText`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/rtfseltext-property/llms-full.txt) | This property works much like the standard [SelText](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/seltext-property/llms-full.txt) property. |
| [`TXTextControl.Text`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/text-property/llms-full.txt) | Returns or sets the complete text of a `TXTextControl`. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.Append`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/append-method/llms-full.txt) | Appends text in a certain format from a file and inserts it at the end of the current document. |
| [`TXTextControl.AppendFromMemory`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/appendfrommemory-method/llms-full.txt) | Appends text in a certain format from a buffer and inserts it at the end of the current document. |
| [`TXTextControl.Load`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/load-method/llms-full.txt) | Loads text in a certain format from a file and inserts it into the `TXTextControl`. |
| [`TXTextControl.LoadDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/loaddialog-method/llms-full.txt) | Opens the system 'Open' dialogbox and loads a document as specified. |
| [`TXTextControl.LoadFromMemory`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/loadfrommemory-method/llms-full.txt) | Loads text in a certain format from a buffer and inserts it into the `TXTextControl`. |
| [`TXTextControl.ResetContents`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/resetcontents-method/llms-full.txt) | Deletes the complete contents of a `TXTextControl` including tables, objects, marked text fields and headers and footers. |
| [`TXTextControl.Save`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/save-method/llms-full.txt) | Saves data in a file with a specified format. |
| [`TXTextControl.SaveDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/savedialog-method/llms-full.txt) | Opens the system 'Save As' dialogbox and saves a document as specified. |
| [`TXTextControl.SaveToMemory`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/savetomemory-method/llms-full.txt) | Returns a one-dimensional byte array containing text data in a specified format. |
| [`TXTextControl.SaveToMemoryBuffer`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/savetomemorybuffer-method/llms-full.txt) | Returns a buffer containing text data in a specified format. |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.Change`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/change-event/llms-full.txt) | Indicates that the contents of a `TXTextControl` have changed. |

### Related Pages

- [Working with Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/load-save/llms-full.txt): the file formats and how to load and save them.
- [Connecting to Databases](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/databases/llms-full.txt): store and load formatted text in databases.
- [Clipboard Operations](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/clipboard/llms-full.txt): cut, copy and paste.

---

## Nearby

- **Previous:** [Zooming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/zooming/llms-full.txt)
- **Next:** [Images, Text Frames, Signature Fields and OLE Objects](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)
