# ImageInsertFixed Method

> Inserts an image at a fixed position on a page with text flowing around it: file name, page number, position and distances in twips, scaling and text flow.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > ImageInsertFixed Method
- **642 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imageinsertfixed-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imageinsertfixed-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imageinsertfixed-method/llms-full.txt

---

This method inserts a new image at a fixed geometrical position. The text flows around the image.

Introduced: 12.0.

### Syntax

```vbscript
TXTextControl.ImageInsertFixed FileName, PageNo, PosX, PosY, ScaleX, ScaleY, TextFlow, DistanceL, DistanceT, DistanceR, DistanceB
```

### Parameters

| Parameter | Description |
|---|---|
| FileName | Specifies the image file with a full path name. |
| PageNo | Specifies the number of the page where the image is inserted, beginning with number 1. If the [ViewMode](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/viewmode-property/llms-full.txt) property has not been set to **Page View**, this parameter must be set to zero. In this case the PosY parameter specifies the position relative to the top of the control. |
| PosX | Specifies the image's horizontal position in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips) relative to the left border of the page. |
| PosY | Specifies the image's vertical position in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips) relative to the top border of the page or control. |
| ScaleX | Specifies a horizontal scaling factor as a percentage. |
| ScaleY | Specifies a vertical scaling factor as a percentage. |
| TextFlow | Specifies how text flows around the image. It can be one of the following values: |
| DistanceL, DistanceT, DistanceR, DistanceB | Specifies distances, in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips), between the image and the document's text. |

#### TextFlow

| Value | Description |
|---|---|
| 2 | The text stops at the top and continues at the bottom of the image. |
| 3 | The text flows around the image. Empty areas at the left and right side are filled. |

### Return Value

The method returns the image's identifier, if a new image could be inserted. Otherwise, it returns zero. The image's identifier can also be obtained with the [ObjectCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt) property.

### Data Types

| Name | Data type |
|---|---|
| FileName | String |
| PageNo | Long |
| PosX | Long |
| PosY | Long |
| ScaleX | Integer |
| ScaleY | Integer |
| TextFlow | Integer |
| DistanceL | Integer |
| DistanceT | Integer |
| DistanceR | Integer |
| DistanceB | Integer |
| Return value | Integer |

### See Also

- [ImageInsertAsChar Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imageinsertaschar-method/llms-full.txt)
- [ImageInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imageinsert-method/llms-full.txt)
- [Programming Category: Images, Text Frames, Signature Fields and OLE Objects](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)

---

## Nearby

- **Previous:** [ImageInsertAsChar Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imageinsertaschar-method/llms-full.txt)
- **Next:** [ImageSaveMode Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imagesavemode-property/llms-full.txt)
