# PrintDevice Property

> Sets the printer device context handle used by the built-in printing of TXTextControl with PrintPage and PrintDoc; write only and available at run time only.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > PrintDevice Property
- **195 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printdevice-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printdevice-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printdevice-property/llms-full.txt

---

Sets the printer device context for Text Control's built-in printing function. The Windows operating environment manages devices like printers and screens with context handles.

### Syntax

```vbscript
TXTextControl.PrintDevice [= DeviceContextHandle]
```

### Data Types

Long.

### Examples

See the [PrintPage](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printpage-method/llms-full.txt) method example.

### Limitations

Write only, run time only.

### See Also

- [PageHeight Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageheight-property/llms-full.txt)
- [PageMarginx Properties](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagemarginb-property/llms-full.txt)
- [PageWidth Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagewidth-property/llms-full.txt)
- [PrintPage Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printpage-method/llms-full.txt)
- [Programming Category: Printing and Print Preview](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/printing/llms-full.txt)

---

## Nearby

- **Previous:** [PrintColors Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printcolors-property/llms-full.txt)
- **Next:** [PrintDialog Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printdialog-method/llms-full.txt)
