# Append Method

> Appends a file to the end of the document: FileName, Offset, Format identifier and AppendSettings for a new paragraph or section. Returns the file position.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > Append Method
- **407 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/append-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/append-method/llms.txt
- **LLMs-Full URL:** 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.

Introduced: 22.0.

### Syntax

```vbscript
TXTextControl.Append FileName[, Offset[, Format[, AppendSettings]]]
```

### Parameters

| Parameter | Description |
|---|---|
| FileName | Specifies the file to load from. |
| Offset | Optional. Specifies the file position from where the data is read. When not specified or set to zero the data is read from the beginning. |
| Format | Optional. Specifies a format identifier. When not specified Text Control assumes Text Control's internal format (3). See the Format parameter of the [Load](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/load-method/llms-full.txt) method for possible format identifiers. |
| AppendSettings | Optional. When omitted, the text is inserted at the last position of the last paragraph. Otherwise, it must be one of the following **AppendSettingsConstants** constants: |

#### AppendSettings

| Constant | Meaning |
|---|---|
| txStartWithNewParagraph | Appends the text starting with a new paragraph. |
| txStartWithNewSection | Appends the text starting with a new section on a new page. |

### Return Value

The method returns the position in the file after the data has been loaded.

### Data Types

| Name | Data type |
|---|---|
| FileName | String |
| Offset | Long |
| Format | Integer |
| AppendSettings | Integer |
| Return value | Long |

### See Also

- [PDF Export](https://docs.textcontrol.com/tx-text-control-activex/pdf/llms-full.txt)
- [AppendFromMemory Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/appendfrommemory-method/llms-full.txt)
- [Programming Category: Loading, Saving and Database Support](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/load-save/llms-full.txt)

---

## Nearby

- **Previous:** [AllowUndo Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/allowundo-property/llms-full.txt)
- **Next:** [AppendFromMemory Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/appendfrommemory-method/llms-full.txt)
