# Javascript: TXTextControl.getInstalledPrinters Method

> Gets the names of the printers installed on the server which are usable by Text Control.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 24.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.getInstalledPrinters Method
- **256 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/getinstalledprinters-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/getinstalledprinters-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/getinstalledprinters-method/llms-full.txt

---

### Description

Gets the names of the printers installed on the server which are usable by Text Control.

### Syntax

```javascript
<void> TXTextControl.getInstalledPrinters(<RequestStringsCallback> callback)
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Is called with the names of the installed printers which can be used by Text Control as soon as the information has been retrieved from the server. |

### Examples

The following example demonstrates `TXTextControl.getInstalledPrinters` in a practical document-editing workflow. It gets the names of the printers installed on the server which are usable by Text Control.

```javascript
TXTextControl.getInstalledPrinters(
    function(result) {
        console.log("get installed printers result:", result);
    }
);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.getInsertionMode Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/getinsertionmode-method/llms-full.txt)
- **Next:** [Javascript: TXTextControl.getIsFormFieldValidationEnabled Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/getisformfieldvalidationenabled-method/llms-full.txt)
