# ObjectPrint Event

> Occurs when a document with objects inserted through their hWnd property is printed, passing the printer device context and the object's bounding rectangle.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > ObjectPrint Event
- **316 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectprint-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectprint-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectprint-event/llms-full.txt

---

Occurs when a document containing objects is printed. This event is sent only for objects that have been inserted via its hWnd property.

### Syntax

```vbscript
ObjectPrint(ObjectId, Device, Left, Top, Right, Bottom, Processed)
```

### Parameters

| Parameter | Description |
|---|---|
| ObjectId | Is the identifier of the object that is to be printed. |
| Device | Is the printer device context. |
| Left, Top, Right, Bottom | Is the object's bounding rectangle. This rectangle is given in device pixels with an origin at the upper left corner of the object. |
| Processed | When the object has been printed, this parameter should be set to True. |

### Data Types

| Name | Data type |
|---|---|
| ObjectId | Integer |
| Device | Long |
| Left, Top, Right, Bottom | Long |
| Processed | Boolean |

### See Also

- [ObjectGetData Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectgetdata-event/llms-full.txt)
- [ObjectSetData Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectsetdata-event/llms-full.txt)
- [ObjectGethWnd Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectgethwnd-event/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:** [ObjectPosY Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectposy-property/llms-full.txt)
- **Next:** [ObjectRightClicked Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectrightclicked-event/llms-full.txt)
