# Printing and Print Preview

> Print TXTextControl documents and pages with PrintDoc, PrintPage and PrintDialog and set the printer device, colors, offset and zoom of the printout.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Printing and Print Preview
- **484 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/printing/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/printing/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/printing/llms-full.txt

---

Printing a `TXTextControl` document goes through the system printing dialog or straight to a device. The members below print a whole document, a part of it or a single page, set the printer device context and set colors, offset and zoom for the printout.

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.CurrentPages`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/currentpages-property/llms-full.txt) | Returns the number of pages contained in the current document. |
| [`TXTextControl.PrintColors`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printcolors-property/llms-full.txt) | Specifies whether text colors are printed as colors or in black. |
| [`TXTextControl.PrintDevice`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printdevice-property/llms-full.txt) | Sets the printer device context for `TXTextControl`'s built-in printing function. |
| [`TXTextControl.PrintOffset`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printoffset-property/llms-full.txt) | Determines whether `TXTextControl` starts printing exactly at the top left corner of the page, or at the printer's physical printing offset. |
| [`TXTextControl.PrintZoom`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printzoom-property/llms-full.txt) | Specifies a zoom factor for printing. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.PrintDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printdialog-method/llms-full.txt) | Opens the system printing dialog and prints a `TXTextControl` document as specified through the dialog. |
| [`TXTextControl.PrintDoc`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printdoc-method/llms-full.txt) | Prints a `TXTextControl` document or a part of a `TXTextControl` document on the default printer. |
| [`TXTextControl.PrintPage`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/printpage-method/llms-full.txt) | Prints a page of text on the default printer. |

### Related Pages

- [Sections and Pages](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/sections-pages/llms-full.txt): sections, page size, margins, columns and page borders.
- [Printing](https://docs.textcontrol.com/tx-text-control-activex/document-editor/printing/llms-full.txt): print documents from your application.

---

## Nearby

- **Previous:** [Undo](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/undo/llms-full.txt)
- **Next:** [Search and Replace](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/search-replace/llms-full.txt)
