# Device Property

> Returns or sets the device the document is formatted for: 1 for the screen, 2 for the standard printer (default) or the name of an installed printer.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > Device Property
- **177 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/device-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/device-property/llms.txt
- **LLMs-Full URL:** 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 Text Control document is formatted.

### Syntax

```vbscript
TXTextControl.Device [= Device]
```

| Setting | Description |
|---|---|
| 1 | The document is formatted for the screen. |
| 2 | (Default) The document is formatted for the standard printer. |
| Otherwise | A character string identifying an installed printer. This string must be in the same format as that used in the Windows system settings, for example: Postscript Printer, PSCRIPT, LPT1: |

### Data Types

Integer or String.

### Limitations

Run time only.

### See Also

- [PDF Export](https://docs.textcontrol.com/tx-text-control-activex/pdf/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:** [DecreaseIndent Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/decreaseindent-method/llms-full.txt)
- **Next:** [DisplayColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/displaycolor-property/llms-full.txt)
